- Port sths34pf80_tmos_odr_set with comprehensive ODR validation based on averaging settings - Port sths34pf80_func_cfg_write as writeEmbeddedFunction() with safe power-down procedures - Port sths34pf80_algo_reset as algorithmReset() for sensor algorithm reset - Port sths34pf80_tmos_odr_check_safe_set as safeSetOutputDataRate() with proper DRDY handling - Add proper #define STHS34PF80_EMBEDDED_RESET_ALGO to replace hardcoded 0x2A value - Implement isConnected() function for chip ID verification (0xD3) - Add complete data reading functions for all sensor outputs - Add status flag checking functions (isDataReady, isPresence, isMotion, isTempShock) - Update test sketch with live sensor readings and continuous monitoring - Enhance begin() to use recommended default settings and proper initialization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github | ||
| examples/test_sths34pf80 | ||
| .clang-format | ||
| Adafruit_STHS34PF80.cpp | ||
| Adafruit_STHS34PF80.h | ||
| output.txt | ||
| README.md | ||
| sths34pf80.pdf | ||
| sths34pf80.txt | ||
Adafruit STHS34PF80 Library 

This is the Adafruit STHS34PF80 infrared sensor library for Arduino.
Tested and works great with the Adafruit STHS34PF80 Breakout Board.
This chip uses I2C to communicate, 2 pins are required to interface.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
About the STHS34PF80
The STHS34PF80 is an uncooled, factory-calibrated infrared motion and presence detection sensor. Key features include:
- High Sensitivity: 2000 LSB/°C IR sensitivity
- Long Range: Up to 4 meters detection without lens for 70x25cm objects
- Wide Field of View: 80° field of view
- Smart Algorithms: Embedded presence, motion, and ambient temperature shock detection
- Low Power: 10 µA supply current at 1Hz ODR
- Temperature Sensor: Integrated ambient temperature sensor with ±0.3°C accuracy
- Flexible ODR: Programmable output data rates from 0.25 Hz to 30 Hz
- Digital Interface: I²C and 3-wire SPI interface
- Operating Range: 5 µm to 20 µm wavelength, -40°C to +85°C
Installation
To install, use the Arduino Library Manager and search for "Adafruit STHS34PF80" and install the library.
Dependencies
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation and doxygen
Documentation is produced by doxygen. Contributions should include documentation for any new features that they add.
Some examples of how to use the library are included in the examples/ folder.
About this Driver
Written by Ladyada for Adafruit Industries. MIT license, check license.txt for more information All text above must be included in any redistribution