Skip to content
Library code for AM2315 sensors
C++
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Moved repository to actions May 26, 2020
examples/am2315test
Adafruit_AM2315.cpp Moved repository to actions May 26, 2020
Adafruit_AM2315.h Moved repository to actions May 26, 2020
README.md Moved repository to actions May 26, 2020
library.properties Moved repository to actions May 26, 2020

README.md

Adafruit AM2315 Humidity + Temp Sensor

Build StatusDocumentation

This is a library for the AM2315 Humidity + Temp sensor

Designed specifically to work with the AM2315 in the Adafruit shop ----> https://www.adafruit.com/products/1293

These sensors use I2C to communicate, 2 pins are required to interface Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution

Check out the links above for our tutorials and wiring diagrams

To download. click the ZIP button in the top-middle navbar, rename the uncompressed folder Adafruit_AM2315. Check that the Adafruit_AM2315 folder contains Adafruit_AM2315.cpp and Adafruit_AM2315.h

Place the Adafruit_AM2315 library folder your arduinosketchfolder/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.

To connect the AM2315 to the Arduino:

  • RED wire goes to +5V
  • BLACK wire goes to Ground
  • WHITE wire goes to to i2c clock - on '168/'328 Arduino Uno/Duemilanove/etc that's Analog 5
  • YELLOW wire goes to i2c data - on '168/'328 Arduino Uno/Duemilanove/etc that's Analog 4

Also see http://arduino.cc/en/Reference/Wire

We also have a great tutorial on Arduino library installation at: http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use

You can’t perform that action at this time.