When you want to connect an IoT device to anything (or, for that matter, anything to anything), you should take a serious look at Node-RED, a free, open source visual process wiring system from IBM ...
If you are interested in learning more about the new Raspberry Pi Network Install feature, Pi enthusiast Jeff Geerling has published a new tutorial video on how you can use Raspberry Pi mini PC is ...