Hi, I have a reed switch connected to a Photon. I want to read and publish the voltage of the circuit with the reed switch. here is a small extract of the code:
switchValue = analogRead(A7);
Serial.println(switchValue);
Particle.publish("Value", String(switchValue));
This works, but when i goto the Particle Console to see the output I get:
Event name “Value”. Which is correct
Data as “Null” instead of the voltage readout between 0 and 4095
Any idea how i can actually see the output instead of Null?
Thanks
MGM