-->
Page 1 of 1

ESP8266 & AHT20 Sensor

PostPosted: Mon Oct 31, 2022 6:31 am
by AndyMitch
Hi All,
My learning method is 'by example', as such, does anyone have a code sample C++ for ESP8266 and AHT20 Temp /Humidity sensor? I am just starting out with this as a 'hobby' but have several project idea's in my head!
I have seen various pin allocations for SCL and SDA does this depend on the actual ESP8266? Mine is a NodeMCU
Thanks in anticipation.

Re: ESP8266 & AHT20 Sensor

PostPosted: Tue Nov 01, 2022 12:05 am
by rooppoorali
Arduino codes like this are available: https://www.esp8266learning.com/aht20-t ... no-ide.php
Your board is different from the one that has been used here. But pinouts are similar. NodeMCU also has D1 and D2 as SCL and SDA.