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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6708c2f609473b755b8eeb1cffcc23b718b62d3169f2f47e9fc6b985b823cb46 |
|
MD5 | 4a6186934e497628972d9443de4070c5 |
|
BLAKE2b-256 | 7c9242d5d83e3c6ad343cb4a36dd64a1c93a57c858248abcef0aabae64c6371c |