I added a distance sensor (20cm-150cm – GP2Y0A02YK, https://www.adafruit.com/product/1031) to the in-class project together with the Temperature and Humidity sensor. I also use a 3.7V battery for the MKR1010 board to run wirelessly.
Source code:
https://github.com/effyfan/DeviceToDatabase/tree/master/assign2
- Arduino console showing new sensor data
- Data from MQTT broker
Ideas for an IoT project:
I would like to build a Loneliness Index Device for people with mental illness such as depression. I want to use temperature sensors, UV sensors, color sensors, and sound sensor to monitor their living environment to find out the relationship between their emotional stage and the environment condition.
I am waiting for the sensors to arrive and will see which ones work the best and start building the device.