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/19/2018 9:20:49 PM 69.23 59.90 H3
10/19/2018 8:20:07 PM 69.18 59.91 H3
10/19/2018 6:19:17 PM 69.20 59.94 H3
10/19/2018 5:18:29 PM 69.20 59.94 H3
10/19/2018 4:17:43 PM 69.16 59.96 H3
10/19/2018 3:17:05 PM 69.12 59.99 H3
10/19/2018 2:16:21 PM 69.12 60.01 H3
10/19/2018 11:14:56 AM 68.75 60.10 H3
10/19/2018 10:14:16 AM 68.62 60.14 H3
10/19/2018 9:13:28 AM 68.62 60.15 H3
10/19/2018 8:12:32 AM 68.67 60.16 H3
10/19/2018 7:11:51 AM 68.62 60.21 H3
10/19/2018 6:11:10 AM 68.31 60.25 H3
10/19/2018 4:10:24 AM 68.10 60.30 H3
10/19/2018 3:09:41 AM 68.25 60.34 H3
10/19/2018 2:08:59 AM 68.44 60.39 H3
10/19/2018 1:08:10 AM 68.64 60.43 H3
10/19/2018 12:07:28 AM 68.85 60.46 H3
10/18/2018 11:06:41 PM 69.02 60.50 H3
10/18/2018 9:05:55 PM 69.31 60.56 H3
10/18/2018 8:05:10 PM 69.43 60.59 H3
10/18/2018 7:04:25 PM 69.52 60.60 H3
10/18/2018 6:03:37 PM 69.66 60.61 H3
10/18/2018 5:02:53 PM 69.79 60.62 H3
10/18/2018 4:02:08 PM 69.93 60.62 H3
10/18/2018 2:01:24 PM 69.87 60.69 H3
10/18/2018 1:00:40 PM 69.81 60.75 H3
10/18/2018 11:59:55 AM 69.76 60.78 H3
10/18/2018 10:59:06 AM 69.70 60.81 H3
10/18/2018 9:58:19 AM 69.68 60.82 H3