I have a question that has really confused me. I connected an ESP32 to an AHT20 (an I2C-based temperature and humidity sensor) powered by 5V.
I connected the sensor directly to the ESP32 and checked the SCL and SDA pins, which showed a voltage of 5V. My question is, why wasn't the ESP32 damaged by this 5V connection? I looked at the datasheet for the development board, but I couldn't find any level shifters or protection circuits.
Then I add MOSFET base level shifter in between esp32 and AHT20 sensor thats works too
Can I connect 5V I2C sensors directly to an ESP32 S3 Mini if I make my own PCB board, or should I use a MOSFET-based level shifter?



