I have an I2C sensor without a library (ADPD144RI sensor).
I searched on google, but there was no library for esp32 or Arduino IDE.
Is there a tutorial or how to use an I2C sensor without a library?
2 Answers
Hi.
You can communicate with the sensors using the “standard” Wire.h library. Here’s a link to the library:
We don’t have a tutorial using the Wire.h library.
However, I’ve found this tutorial by HowToMechatronics that provides an example reading from an I2C sensor using the sensor registers:
The example provided is for the Arduino board, but the methods are compatible with the ESP32 board.
I hope this helps.
Regards,
Sara