# AM2315 Not working

**URL:** <https://community.particle.io/t/am2315-not-working/18942>\
**Category:** Troubleshooting\
**Created:** [January 10, 2016, 1:23am UTC](https://community.particle.io/t/am2315-not-working/18942 "2016-01-10T01:23:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianlewis](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ianlewis/32/6086_2.png) [@ianlewis](https://community.particle.io/u/ianlewis)\
**Post date:** [January 10, 2016, 1:23am UTC](https://community.particle.io/t/am2315-not-working/18942/1 "2016-01-10T01:23:14Z")

</div>

I’ve been trying unsuccessfully to get the Photon to read data from the AM2315 temperature sensor. My code is pretty simple.

```
Wire.beginTransmission(0x5C);
delay(2);
Serial.println(Wire.endTransmission());

```

This prints 2 every time so the sensor isn’t getting initialized properly. My wiring is ok. I have 10k pullup resistors on the SDA and SCL lines and I have verified the sensor works by reading data via a Raspberry Pi.

I tried running the code on the Arduino and it returned 4 instead of 2 but otherwise identical outcomes.

Any idea what I could do to get it working?

---

<div class="post-metadata">

**Author:** ![ianlewis](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ianlewis/32/6086_2.png) [@ianlewis](https://community.particle.io/u/ianlewis)\
**Post date:** [January 10, 2016, 1:55am UTC](https://community.particle.io/t/am2315-not-working/18942/2 "2016-01-10T01:55:56Z")

</div>

I had some issues with waking up the sensor. Not sure exactly what I did differently but kicking it a few times seems to have helped 😲
