enjoyneering / aht10 Goto Github PK
View Code? Open in Web Editor NEWThis is an Arduino library for Aosong ASAIR AHT10, AHT15 Digital Humidity & Temperature Sensor
This is an Arduino library for Aosong ASAIR AHT10, AHT15 Digital Humidity & Temperature Sensor
Hi, where did you find a complete datasheet? I could only find https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf which does not state any calibration command?!
Bye!
ESP8266 startup/restart reports first temperature "-50" and humidity "0",
void aht10() {
if (millis() > temptimer2 + 5000) {
temptimer2 = millis();
float h2 = myAHT10.readHumidity();
float t2 = myAHT10.readTemperature();
if (h2 == 255 || h2 == 0 || t2 == 255 || t2 == -50) { //current workaround
client.publish("keskmine_tuba/aht10/temp", "--");
client.publish("keskmine_tuba/aht10/humidity", "--");
}
else {
client.publish("keskmine_tuba/aht10/temp", String(t2).c_str(), true);
client.publish("keskmine_tuba/aht10/humidity", String(h2).c_str(), true);
}
}
}
Could the option of using non-standard i2c pins (21,22) be used for the ESP32 as well?
Lines 98 to 99 in d046ea3
Something like:
#if defined(ESP8266) || defined(ESP32)
bool begin(uint8_t sda = SDA, uint8_t scl = SCL);
I think you ment to write .readHumidity instead fo reading again the temperature
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.