The block sends multiple data to the ThingSpeak channel with a delay of the specified time seconds. The data is mapped to the 8 fields of the ThingSpeak channel.
In this example, we will send the humidity and temperature sensor data to the cloud on the ThingSpeak servers.
In this example, we will send the humidity and temperature sensor data to the cloud on the ThingSpeak servers.
ThingSpeak Channel
Create a channel on ThingSpeak with 2 fields – Temperature and Humidity.
DHT Sensor Connection to Quarky
DHT sensors have 3 pins: GND, VCC, and Signal. You have to connect the following 3 pins to the Quarky Expansion Board:
- GND to Ground Pin of Quarky Expansion Board
- VCC to 3.3V or VCC Pin of Quarky Expansion Board
- Signal to the D3 (Digital Pin) of the Quarky Expansion Board
Script
The following script reads the temperature and humidity reading from the DHT sensor and sends them to the ThingSpeak channel.
Output
Read More