Hi all,
I am following the tutorial at this link:
And want to change the code so that it does not return "0" when the sensor reads nothing, and instead returns "10,000". How do I do this?
Hi all,
I am following the tutorial at this link:
And want to change the code so that it does not return "0" when the sensor reads nothing, and instead returns "10,000". How do I do this?
if(sensorRead == 0) {
sensorRead = 10000;
}