Skip to content

momoyuki/amt1001_ino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amt1001_ino

AMT1001 sensor library for arduino sketches

Hardware

Yellow Wire -> Humidity

White Wire -> Temperature

The temperature wire should be situated in a voltage divider before it reaches the analog input pin. Use a 10K resistor to ground.

Code

// Get Temperature
uint16_t step = analogRead(tempPin);
uint16_t temperature = amt1001_gettemperature(step);
Serial.println(temperature);

// Get Humidity
uint16_t step = analogRead(humPin);
double volt = (double)step * (5.0 / 1023.0);
uint16_t humidity = amt1001_gethumidity(volt);
Serial.println(humidity);

References

Original library

About

AMT1001 sensor library for arduino sketches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 60.2%
  • C++ 39.8%