Can you check the battery voltage? Either with a meter or Puck.getBatteryPercentage().
It looks like the minimum voltage for the DHT11 is 3v, so if the battery is even slightly run down then it won't work. You could use an external source of power for it and the Puck though - there are some 3.6v non-rechargeable lithium cells (LiPos have slightly too high a voltage) that might be perfect.
Also the DHT11 doesn't draw huge amounts of power, but it's enough that just plugging it into a CR2032 battery will flatten it in 2 months, so it's worth bearing in mind. You could always power it from an IO pin so you can turn it on and off as needed.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Can you check the battery voltage? Either with a meter or
Puck.getBatteryPercentage()
.It looks like the minimum voltage for the DHT11 is 3v, so if the battery is even slightly run down then it won't work. You could use an external source of power for it and the Puck though - there are some 3.6v non-rechargeable lithium cells (LiPos have slightly too high a voltage) that might be perfect.
Also the DHT11 doesn't draw huge amounts of power, but it's enough that just plugging it into a CR2032 battery will flatten it in 2 months, so it's worth bearing in mind. You could always power it from an IO pin so you can turn it on and off as needed.