DC Voltage sensor


Codes for different boards and shields.
All codes only work with MQTT.

ESP8266.txt (1.8 KB)
ArduinoYun.txt (1.6 KB)
EthernetShieldW5100.txt (1.6 KB)
Arduino_Industrial_101.txt (904 Bytes)
EthernetShieldW5200.txt (1.6 KB)
EthernetShieldW5500.txt (1.6 KB)
ManualConnection.txt (2.6 KB)
WiFi101Shield.txt (1.7 KB)
WiFiShield.txt (1.7 KB)
MKR1000.txt (1.7 KB)

Sample from the Cayenne Dashboard.

Codes are for this sensor.



I haven’t seen this sensor yet, what exactly does it do? Simply a 0/1 output, or analog like a volt meter? Do you have a link to it?


It’s a voltage divider.
Connect minus to Arduino Gnd and “S” to Analog pin.



Or simply make voltage divider and use @tad.dvor code :slight_smile:


Cool, even simpler yet.