float sensor+arduino

Looking at the video the readout is via the serial monitor feature of the arduino IDE.

This is straightforward.

I append a circuit to drive an anlog input of the arduino. Read that value with analogRead, scale it
( meaure with tank empty and full as your end points) and send to the IDE with Serial.print

regards

Allan

ps note that the value depends on that of the 12v supply. If the bike is running the 12v will be higher.

so when you calibrate choose whether you want the bike running or not when you take a reading.

if you want an accurate reading in both cases a regulator will be necessary.

tanksense.pdf (18 KB)