i wrote an arduino program to read the temperature and the humidity using a sensor with 4 pins
and a serial lcd 16x2
but the screen is giving me either 1 or 0 for both of temperature and humidity .
I don't know where the problem is.
can anybody helps me ?
essaye.ino (1018 Bytes)
If you post your code as instructed in the how to use this forum-please read stickies more members will see it.
int chk = dht.read11(DHT11_PIN);
You are getting a value back from the DHT.read11() function but you don't bother to check the value. Perhaps it will tell you why the data looks wrong.
For more specific help I need to know where to find the "LCD" and "dht" libraries you are using.