Aosong AM2315 temp/rh


Has anyone tried to collect Temp/RH data from a AM2315 sensor?

I've tried the i2C in/out nodes with little success (I get a return from the sensor but it doesn't make sense).

I can get data through python scripts so I know the sensor is wired correctly.


Which hardware? Show us your flow please!

[{"id":"1477d41f.ef3274","type":"inject","z":"414b12bb.d470bc","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":200,"y":360,"wires":[["9809ef2.46f0c1","4374245d.98630c"]]},{"id":"ea35a8fa.c6eb","type":"debug","z":"414b12bb.d470bc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":750,"y":420,"wires":[]},{"id":"9809ef2.46f0c1","type":"delay","z":"414b12bb.d470bc","name":"","pauseType":"delay","timeout":"250","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":430,"y":360,"wires":[["cb6377b9.a717a8","df8343ed.6fba58"]]},{"id":"cb6377b9.a717a8","type":"i2c out","z":"414b12bb.d470bc","name":"","address":"92","command":"3","payload":"[0x00,0x04]","payloadType":"str","count":"3","x":620,"y":360,"wires":[]},{"id":"df8343ed.6fba58","type":"i2c in","z":"414b12bb.d470bc","name":"","address":"92","command":"3","count":"5","x":610,"y":420,"wires":[["ea35a8fa.c6eb"]]},{"id":"4374245d.98630c","type":"i2c out","z":"414b12bb.d470bc","name":"","address":"92","command":"0","payload":"0","payloadType":"str","count":"2","x":440,"y":300,"wires":[]}]


Please redo pasting the flow between back-ticks or triple back-ticks.

You may need to decode the Python library you are using in order to work out how to read the raw sensor data. Personally, I always put sensors on an Arduino (direct connect) or ESP (output to MQTT) microprocessor so I don't have to think about sensor complexity - there is nearly always a suitable Arduino IDE library available.


Re-pasted a simpler flow inside backticks.....

I am using a Raspberry Pi 3b with a Aosong AM2315.

The sensor needs to be sent a couple of bytes to wake it up then the commands to read (0x03), from register 0 (0x00), and the number of bytes (4). So all together is: [0x03,0x00,0x04]

The I2C input node seems to only allow a single byte in its command.


The backticks should be on separate lines, before and after the code:


sorry - new to this whole forum thing


Still wrong way.
Please read this to get flow sharing done in proper way


thank you - fixed (really this time)


I am currently working on am2315 temperature sensor on raspberry pi, it will be kind if you can share the flow and how do you connect the sensor, get everything works together, I tried about an hour now but no luck thanks in advance, Elvin.