Skip to content

bccrew/JSN-SR04T-sensor-to-MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Use JSN-SR04T sensor on Raspberry Pi to calculate the cylindrical volume of a raintank and publish to MQTT broker


Installation instruction:

1) Install the paho-mqtt library

sudo pip3 install paho-mqtt

2) Place the script wherever you want on the raspberry pi

3) Edit the script to the measurements of your rainwater tank

TankHeight = 200  # distance from sensor to bottom of tank ( cm )
TankRadius = 91  # radius of tank ( cm )
BrokerAddr = '192.168.1.41'  # Address of MQTT brocker

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages