Particle (Spark) Core based "smart switch"
Code can be compiled and uploaded to device using the Particle Build page (https://build.particle.io/build/). Since Particle Build does not yet support Git integration you will need to copy-and-paste code if any updates are made.
Components used:
- Particle Core (www.particle.io)
- Relay module (ebay)
- DHT22 module (ebay)
Fritzing diagram:
Note that there is an "internal pull-up" set on D2.
To see the status of the switch and the connected sensor data you can use this web page.