Please help me with the code of voltage sensor <25 v dc , thinger code please

value = analogRead(voltagePin);
vout = (value * 5.0) / 1024.0;
vin = vout / (R2/(R1+R2));

Please suggest me the thinger code to send the data of vin to dashboard.

The example code works, something like

thing["Voltage"] >> outputValue(vin);

And you setup the dashboard to ask for the value every certain time.

Hope this helps.

1 Like

This sensor not giving the actual output . In multimeter i am getting 8v but through the sensor i getting 4v .

Is there any other code to upload it to

Yes sure, check this → CODING GUIDE - Documentation

Hope it helps.

Hope it will help