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
11/22/2018 10:44:24 PM 68.42 69.53 H2
11/22/2018 9:43:43 PM 69.00 69.67 H2
11/22/2018 8:43:02 PM 69.33 69.63 H2
11/22/2018 7:42:19 PM 67.77 69.15 H2
11/22/2018 6:41:37 PM 65.62 69.08 H2
11/22/2018 5:41:00 PM 65.03 69.30 H2
11/22/2018 2:39:26 PM 65.34 69.22 H2
11/22/2018 1:38:43 PM 65.72 69.92 H2
11/22/2018 12:37:55 PM 66.01 69.02 H2
11/22/2018 10:36:31 AM 66.65 69.33 H2
11/22/2018 8:35:47 AM 66.88 69.06 H2
11/22/2018 7:34:58 AM 66.80 69.09 H2
11/22/2018 6:34:16 AM 66.42 69.17 H2
11/22/2018 5:33:34 AM 65.53 69.28 H2
11/22/2018 4:32:51 AM 65.14 70.01 H2
11/22/2018 3:32:02 AM 65.64 69.42 H2
11/22/2018 1:31:12 AM 66.71 69.87 H2
11/22/2018 12:30:18 AM 67.15 69.08 H2
11/21/2018 11:29:28 PM 67.65 69.08 H2
11/21/2018 10:28:39 PM 68.13 69.08 H2
11/21/2018 9:27:49 PM 68.66 69.21 H2
11/21/2018 8:27:02 PM 68.66 69.16 H2
11/21/2018 6:26:26 PM 68.04 69.97 H2
11/21/2018 5:25:18 PM 67.79 71.21 H2
11/21/2018 4:24:29 PM 67.84 69.03 H2
11/21/2018 3:23:47 PM 67.92 69.10 H2
11/21/2018 2:23:10 PM 67.98 69.22 H2
11/21/2018 1:22:31 PM 67.96 69.34 H2
11/21/2018 11:21:47 AM 67.69 69.08 H2
11/21/2018 10:21:06 AM 67.40 69.13 H2