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/23/2019 1:54:15 PM 73.93 52.51 H2
10/23/2019 12:53:54 PM 73.87 52.42 H2
10/23/2019 11:53:31 AM 73.73 52.32 H2
10/23/2019 10:53:09 AM 73.58 52.24 H2
10/23/2019 9:52:47 AM 73.48 52.15 H2
10/23/2019 8:52:25 AM 73.46 52.07 H2
10/23/2019 7:52:02 AM 73.48 51.99 H2
10/23/2019 6:51:40 AM 73.54 51.96 H2
10/23/2019 5:51:18 AM 73.62 51.91 H2
10/23/2019 4:50:56 AM 73.69 51.87 H2
10/23/2019 3:50:34 AM 73.71 51.82 H2
10/23/2019 2:50:11 AM 73.73 51.77 H2
10/23/2019 1:49:51 AM 73.79 51.69 H2
10/23/2019 12:49:45 AM 73.79 51.63 H2
10/22/2019 11:49:05 PM 73.73 51.54 H2
10/22/2019 10:48:42 PM 73.67 51.45 H2
10/22/2019 9:48:21 PM 73.56 51.32 H2
10/22/2019 8:47:58 PM 73.42 51.19 H2
10/22/2019 7:47:36 PM 73.15 51.07 H2
10/22/2019 6:47:13 PM 73.00 50.96 H2
10/22/2019 5:46:52 PM 72.96 50.89 H2
10/22/2019 4:46:29 PM 72.88 50.83 H2
10/22/2019 3:46:07 PM 72.88 50.76 H2
10/22/2019 2:45:45 PM 72.84 50.71 H2
10/22/2019 1:45:23 PM 72.79 50.63 H2
10/22/2019 12:45:01 PM 72.75 50.58 H2
10/22/2019 11:44:38 AM 72.81 50.55 H2
10/22/2019 10:44:16 AM 72.90 50.54 H2
10/22/2019 9:43:54 AM 72.98 50.51 H2
10/22/2019 8:43:31 AM 72.98 50.46 H2