Two Temperature Gauge Arduino Web Server

This two temperature sensor Arduino Ethernet web server uses an Arduino, Ethernet shield and two MCP9700 temperature sensors to measure two temperatures.




The temperatures are displayed on two gauges on the web page hosted by the Arduino web server. The two sensors can be used to measure an inside temperature (e.g. inside a building or room) and an outside temperature (e.g. outside air temperature).

8 thoughts on “Two Temperature Gauge Arduino Web Server

  1. Can anyone out there help me please, cannot get gauges to work. The other aketches works , my copy and paste sets wrong file type for sketches.
    Would it be possible for someone to add the gauges to the button sketch so that the temperature or analogue imputs is displayed onthe gauges.willing to pay

  2. Good afternoon,

    I have a question . Can i do that without a SD card? I mean, it is wrong if i show the values ​​read by the “Arduino ethernet” directly in the webpage? I installed the sensores and i wrote a simple program for the sensores just to see what is going on. Then i put the IP in the brower and then the values started to show, so far so good, but the values read by the “arduino ethernet” oscilated too much, eg. 13.83 ºC to 8.25 ºC. Then i started to think that some thing was not right, and i confirmed this, just doing a “Serial monitor” on the “Arduino IDE” and the values was just fine, like 14 ºC. that was the real temperature in the room, and the values doesn’t oscilated. So what is the problem or maybe it’s need the SD card.

    Thanks.

    • You can do that without the SD card, the only limit is the size of the microcontroller Flash memory. It is also more difficult to read the web page code when it is part of the Arduino code.

  3. Hello,

    Beautiful project, very interesting. I was able to adapted it to read the DHT22 sensor, and display temperature and humidity. I am trying to adjust the gauges to show from 0 to 100 for the humidity. We know that humidity dont go higher than 100, but when I do that, the needle is not set to 0 any more, its about 4 higher, so the reading is off, the digital display is OK. Any idea how to correct that? Thank you. Alex

    • Hi Alex
      Just check what the value of the variable is that you are feeding to the gauge. You can write it out of the serial port and check it on the Serial Monitor window of the Arduino IDE. There may be some offset from your sensor that must be compensated for.
      You can also isolate the gauge and host it on a web page on your computer and then change the values for the gauge in JavaScript to check that the gauge is set up properly.
      I hope this helps.

      • Hello hello,

        Thank you so much for your reply. I was able to figured out where my problem: I wanted to make one gauge to indicate 120 for degrees, and the other to indicate 100 % for humidity, so editing the canvas lines at the bottom of the HTML file I introduced a blank space , and that threw the needles indications off.
        I have adapted 3 DHT22 sensors, the data from these sensors are indicated beautifully!
        Once again, thank you very much for all this work. Alex.

      • Hi there.
        Is there any chance to share the code?
        I am struggling to send the data from de DHT22 to the gauges.
        Any help would be apreciatted.
        Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *