Reading a LDR with a raspberry pi and publishing the data via mqtt
Project description
# Light Sensor MQTT This repsository contains a simple light sensor for the raspberry pi. Because the pi does not have any analog inputs the scripts measures how long it takes to charge a capacitor until the pi recognizes the voltage as logical one.The script will takes n measurements, averages them and publishes the result via MQTT.In my setup the MQTT data will be read by home assistant and is used to control the lights.## Installation`pip install raspberrypi-mqtt-light-sensor`
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for raspberrypi-mqtt-light-sensor-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e702ab570616b27370b4f8fb46dc6a5c58fcfe58a59c609ae008bfb6393befb |
|
MD5 | 47c04447a8090de43451aadb28536557 |
|
BLAKE2b-256 | daa1c150cd713cdf4765bba924608c6148067889f97a73cf7963ecfc4e2e4fea |