I'm using the DHT11 temperature and humidity sensor with an LCD for Arduino Uno. I have code for the LCD to display temperature, but how do I program it to display text if the temperature is over a certain degrees.
For example, once the temperature sensed is above 37 degrees Celsius, I want the LCD to display "At Risk".
What do you mean by " not appear to read the temperature sensor"? I just tested the code and there's nothing on the LCD. It's blank and not even lit up.
How are you even reading the temperature right now? Isn’t there some sort of command for a DHT11 object which allows you to read temp and humidity? (I think it’s dht11.read) Right now, it should be displaying zero, right?
As per your question about the displaying “At Risk” on your LCD, just use an if statement.