I have an official Uno and Ethernet Shield with a prototype board shield to read humidity and Temperature from a DHT22.
When I was testing the software without the Shields on another UNO, the time stamps were working fine. Once I loaded the sketch on the combo above, I am getting sporadic garbage on both my Serial Monitor and my web page.
Web page:
/+"
Humidity: 26.6%, Temp: 119.8° F, Set Point: 120 ° F, Status: Heater On
Monitor:
Ethernet WebServer Starting Up
Server is at 192.168.1.177
Humidity: 26.7 %, Temp: 119.3 Farenheit, Set Point: 90 Runtime: 00:00:02
Humidity: 26.7 %, Temp: 119.8 Farenheit, Set Point: 90 Runtime: 00:00:04
Humidity: 26.7 %, Temp: 119.8 Farenheit, Set Point: 90 Runtime: 00:00:06
Humidity: 26.7 %, Temp: 119.8 Farenheit, Set Point: 90 Runtime: 00:00:08
Humidity: 26.7 %, Temp: 119.8 Farenheit, Set Point: 90 ⸮⸮u⸮⸮⸮⸮
new client
Web page data sent, client disconnected
Humidity: 26.7 %, Temp: 119.8 Farenheit, Set Point: 120 Runtime: 00:00:12
When I comment out the lines:
humidity = dht.readHumidity(); //Read sensor data
tempC = dht.readTemperature();
the errors disappear. But the errors do not appear every time. I had a similar problem when I tried to use NTP time.
Obviously this newbie is doing something not quite right and any help will be much appreciated.
Code attached.
Kiln_Controler_Ethernet_TimeStamp.ino (12.4 KB)