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
10/29/2019 4:48:32 PM 74.10 53.76 H2
10/29/2019 3:48:10 PM 74.04 53.68 H2
10/29/2019 2:47:48 PM 73.93 53.63 H2
10/29/2019 1:47:26 PM 73.93 53.57 H2
10/29/2019 12:47:07 PM 73.93 53.55 H2
10/29/2019 11:46:41 AM 73.95 53.53 H2
10/29/2019 10:46:19 AM 73.98 53.54 H2
10/29/2019 9:45:57 AM 73.98 53.59 H2
10/29/2019 8:45:35 AM 74.04 53.56 H2
10/29/2019 7:45:12 AM 74.12 53.55 H2
10/29/2019 6:44:50 AM 74.22 53.57 H2
10/29/2019 5:44:27 AM 74.35 53.60 H2
10/29/2019 4:44:06 AM 74.52 53.64 H2
10/29/2019 3:43:43 AM 74.74 53.72 H2
10/29/2019 2:43:21 AM 75.03 53.78 H2
10/29/2019 1:42:59 AM 75.32 53.83 H2
10/29/2019 12:42:37 AM 75.62 53.91 H2
10/28/2019 11:42:14 PM 75.74 53.90 H2
10/28/2019 10:41:52 PM 75.76 53.86 H2
10/28/2019 9:41:30 PM 75.72 53.81 H2
10/28/2019 8:41:09 PM 75.64 53.74 H2
10/28/2019 7:40:44 PM 75.61 53.68 H2
10/28/2019 6:40:23 PM 75.35 53.57 H2
10/28/2019 5:40:00 PM 75.12 53.43 H2
10/28/2019 4:39:36 PM 75.05 53.38 H2
10/28/2019 3:39:12 PM 75.01 53.31 H2
10/28/2019 2:38:50 PM 74.97 53.25 H2
10/28/2019 1:38:28 PM 74.85 53.19 H2
10/28/2019 12:38:05 PM 74.64 53.09 H2
10/28/2019 11:37:43 AM 74.41 53.01 H2