The Angry Humidor

Just for fun I added an Arduino to a humidor to monitor the temperature and humidity.

This humidor is built on the newest Arduino board, the MKR1000. This board is basically an Arduino Zero with a built in WiFi shield. I added a Adafruit-htu21d-f temperature and humidity sensor and an LED. The LED is coded to flash codes for errors and readings. The Arduino connects to the WPA2 wireless network with the WIFI101 library. I coded the Arduino to take a temperature and humidity reading every hour then it sends the data over HTTPS POST to a Web API service. The Web API calls a stored procedure in AZURE to write the data to the database. This website pulls the data using MVC. A data access object is created and passed to the model, the model populates the view.

Twitter Account

If, for some strange reason, you take the time to Wifi enable a humidor you should create a twitter acount for it. It is the geeky thing to do. The Web API will randomly select 1 out of 100 temperature and humidity readings to send to the twitter API. This method will create a randomly generated disgruntaled tweet that includes the temperature and humidity.

Humidor readings

Reading Date/Time Temperature Humidity Humidor
1/11/2020 9:01:18 AM 65.85 40.43 CS50
1/11/2020 8:01:18 AM 65.73 38.89 CS50
1/11/2020 7:01:17 AM 66.40 37.45 CS50
1/11/2020 6:01:18 AM 66.45 37.29 CS50
1/11/2020 5:01:22 AM 66.52 37.03 CS50
1/11/2020 4:01:17 AM 66.56 36.90 CS50
1/11/2020 3:01:18 AM 66.56 36.71 CS50
1/11/2020 2:01:18 AM 66.59 36.85 CS50
1/11/2020 1:01:18 AM 66.74 36.77 CS50
1/10/2020 11:01:18 PM 66.05 37.92 CS50
1/10/2020 10:01:17 PM 65.78 38.57 CS50
1/10/2020 9:01:17 PM 65.26 38.03 CS50
1/10/2020 8:01:18 PM 65.24 37.26 CS50
1/10/2020 7:01:17 PM 65.67 36.57 CS50
1/10/2020 6:01:17 PM 65.92 36.24 CS50
1/10/2020 5:01:17 PM 65.99 36.01 CS50
1/10/2020 4:01:17 PM 65.97 36.03 CS50
1/10/2020 3:01:17 PM 65.61 35.00 CS50
1/10/2020 2:01:17 PM 65.63 35.15 CS50
1/10/2020 1:01:17 PM 65.63 34.95 CS50
1/10/2020 12:01:17 PM 65.76 34.48 CS50
1/10/2020 11:01:18 AM 65.85 34.86 CS50
1/10/2020 10:01:18 AM 65.21 33.66 CS50
1/10/2020 9:01:18 AM 65.30 34.30 CS50
1/10/2020 8:01:17 AM 65.38 33.12 CS50
1/10/2020 7:01:18 AM 65.59 33.86 CS50
1/10/2020 6:01:17 AM 64.89 33.59 CS50
1/10/2020 5:01:17 AM 63.60 33.07 CS50
1/10/2020 4:01:17 AM 63.10 31.96 CS50
1/10/2020 3:01:17 AM 63.56 31.77 CS50