I fairly new at this.
I am using an Arduino Uno, running 2 sensors: 1 analogue (soil moisture) and 1 digital (temperature).
When running the Arduino IDE with self written sketch, the console results are fine, i.e. I get accurate readings.
When I switch to Node Red using the Firmata sketch, I get accurate readings from the Adruino-In (analogue) node, but on the digital node, the payload only returns a 1.
What have I overlooked? Thanks in advance.