ThingSpeak Send Data to Cloud – DHT Sensor

Example Description
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:

  1. GND to Ground Pin of Quarky Expansion Board
  2. VCC to 3.3V or VCC Pin of Quarky Expansion Board
  3. 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

Table of Contents