DHT11 Added to ScratchGPIO
You can now use a DHT11 Temperature/Humidity sensor with ScratchGPIO.
To get readings simple use an example script like this to ask for readings once per second from a sensor connected to pin10.
Snap!/Microblocks/Scratch/Node-RED Championer and geek
You can now use a DHT11 Temperature/Humidity sensor with ScratchGPIO.
To get readings simple use an example script like this to ask for readings once per second from a sensor connected to pin10.
Hi, I am new to this. I installed ScratchGPIO8 and tested it with blink11. It’s working fine.
Next I connected up a DHT11 sensor (from Elegoo) and used your example script. I assume I have to set up two variables named humidity [temperature] sensor value, to show the outputs.
Well I did that and connected up the module and ran the script. But I can’t get any values to show on those variables, other than 0!
Could you see if I need to do anything else please?
Hi
ScratchGPIO returns values using Scratch sensors.
Select the Sensing category and then click on the little black arrow on the 2nd from bottom block
You should now be able to see the temperature and humidity sensor values.
If you tick the grey box – you can see the values on the stage or just drag them out to use as the equivalent of read-only variables
Simon
Hi, I don’t find temperature and humidity in the list of sensors values, is there a specific add-on or version of ScratchGPIO to install ?
Thank you for any help you can provide,
Benjamin.
Should be available in the current version
The sensors will not appear until you’ve done a broadcast to enable it to start sending readings
I’ll try and find a DHT11 and make sure its works
Simon
Sorry for delay – found a DHT11 and it didn’t work 🙁
Found a bug I’d introduced and hopefully fixed it
please re-install ScratchGPIO
Hi !
Im interested in the answer as well !… because I have exactly the same problem than Benjamin :
I don’t find temperature and humidity in the list of sensors values !
Does someone has an explanation?
Thanks
Sorry – I’ve been doing other things – I can’t find my DHT 11 so I’ll order one and try to test it out again
Should be fixed now
Please re-install ScratchGPIO
Sorry for delay in responding
Hi.. im a newbie. Does someone succeded to use the dht11 on pibrella ?
Hi Simon,
Is it working with Scratch2GPIO8 ? I don’t find temperature and humidity in sensor ?
Thanks