Chat freely about anything...

User avatar
By btidey
#91264 How are you intending to power this? Battery or mains? If the former then you almost certainly want to use deep sleep. This can be arranged to wake up at specified intervals for the temp measurement, but if you want the PIR to perform the wake up as well then you need to combine that into the timed wake up pulse from GPIO16. If mains powered then not a problem as you can leave active all the time.

One minor downside of the AM312 sensor is that it has a fairly high output resistance on its trigger signal (~20K ohm). This is not a problem if you are feeding it into a raw GPIO but take care if you use a GPIO which has a pull up resistor or when combining with a sleep wake up signal.