ESP8266 switch pin via MQTT

This is a simple code template to switch a pin of an ESP8266 microcontroller using MQTT. The example turns PIN D7 on if "1" was received at the "candle" MQTT topic. All other messages turn the pin off. #include <Arduino.h> #include <ESP8266WiFi.h> #include <…

DIY automated plant watering system

This spring I decided to grow herbs for cooking outside my kitchen window. However, as it turned out after a short time, regular watering is essential. After I got rid of the dried out (and/or drowned) plants, I decided to automate the watering process before trying again. Parts I…

Detect iPhone presence in Node-Red

Detecting the presence of an iOS device in the network can be challenging because iOS does not respond to ICMP ping messages. Fortunately, nmap can be used to check the host's availability. Command of the exec-node: nmap -sn 192.168.1.101 The function node is used to check if…