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
4/5/2018 10:59:57 PM 70.51 77.25
4/5/2018 9:59:54 PM 70.80 77.41
4/5/2018 8:59:51 PM 70.62 77.48
4/5/2018 7:59:47 PM 70.14 77.47
4/5/2018 6:59:45 PM 69.41 77.23
4/5/2018 5:59:46 PM 69.56 77.19
4/5/2018 4:59:39 PM 69.74 77.13
4/5/2018 3:59:36 PM 69.78 77.13
4/5/2018 2:59:33 PM 69.79 77.11
4/5/2018 1:59:30 PM 69.64 77.15
4/5/2018 12:59:26 PM 69.66 77.16
4/5/2018 11:59:23 AM 69.43 77.26
4/5/2018 10:59:20 AM 69.72 77.23
4/5/2018 9:59:16 AM 70.05 77.19
4/5/2018 8:59:15 AM 70.41 77.23
4/5/2018 7:59:11 AM 69.91 77.17
4/5/2018 6:59:09 AM 69.37 76.98
4/5/2018 5:59:06 AM 68.69 77.31
4/5/2018 4:59:03 AM 68.39 77.32
4/5/2018 3:59:00 AM 68.81 77.39
4/5/2018 2:58:57 AM 69.27 77.44
4/5/2018 1:58:53 AM 69.79 77.51
4/5/2018 12:58:52 AM 70.39 77.57
4/4/2018 11:58:46 PM 71.22 77.68
4/4/2018 10:58:58 PM 72.61 77.84
4/4/2018 9:58:41 PM 74.16 77.92
4/4/2018 8:58:38 PM 73.71 77.74
4/4/2018 7:58:34 PM 73.81 77.47
4/4/2018 6:58:30 PM 73.77 77.40
4/4/2018 5:58:27 PM 73.44 75.75