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.
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.
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 thinger.io
Hope it will help