encoder 24v

Puoi usare un fotoaccoppiatore, da far leggere all'interrupt