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 ...
Project networks give you a visual map of the relationship between different tasks in your latest project. To create a network diagram, draw a node -- or sketch it using computer project-managing ...