Install
openclaw skills install usb-light-sensor-readerRead light intensity from USB sensors with real-time monitoring, filtering, and threshold detection.
openclaw skills install usb-light-sensor-readerUser wants to read light intensity (lux) from USB-connected light sensor or check ambient light levels.
Verify Hardware First — Confirm sensor is at /dev/ttyUSB0 and user is in dialout group.
Always Initialize — Call sensor.connect() before reading. Waits 1s for warmup.
Use Filtered Data — read_lux() returns 5-sample moving average. Use read_raw() for unfiltered values.
Default Thresholds — Dark: < 100 lux, Bright: > 500 lux. Adjust based on environment.
Disconnect on Exit — Always call sensor.disconnect() to release serial port.
No persistent storage. Sensor data read in real-time from serial port.
| Endpoint | Purpose |
|---|---|
/dev/ttyUSB0 | Serial read |
| Topic | File |
|---|---|
| Setup & examples | setup.md |
| Troubleshooting | setup.md |