ivanseidel / ArduinoThread

⏳ A simple way to run Threads on Arduino
MIT License
955 stars 196 forks source link

SensorThread example wont show analog values #38

Open Werkeng opened 5 years ago

Werkeng commented 5 years ago

It shows "0" (zero) instead real values... Can you help to fix it? Thanks.

hlovdal commented 5 years ago

Have you configured the pin to be INPUT? E.g.

pinMode(A1, INPUT);