key = "nil";
Warum ist der Datentype geheim?
hmmm..
You just need 3 wires: GND, 3,3V, and a single analog input to the arduino, no library.
Warum 3,3V?
Oder anders: Warum nicht ratiometrisch?
which is ideal for battery powered circuits.
Gerade hier ist mit einer schwankenden Versorgung zu rechen.
Noch ein Grund für eine Ratiometrishe Messung.
Dann behagt mir die If Kaskade nicht so sonderlich.
Ansonsten, recht interessanter Ansatz.
Werde ich selber mal testen....