Cara menggunakan DHT11 di aplikasi arduino dan blynk

Isham0000
2 min readJul 17, 2020

--

STEP PERTAMA

  • Siapkan Kabel Jumper
  • DHT11
  • NodeMCU
  • Laptop

Pemasangan DHT 11 ke NodeMCU menggunakan kabel jumper

  • Minus (-) Ke GND
  • Out Ke D4
  • Plus (+) Ke 3V

STEP KEDUA

Download library DHT 11, Caranya di bawah ini:

Langsung di close aja kalo udah di install library nya

Kalo sudah kita buka DHT11 nya seperti ini:

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

Ini nanti buat di ubah Ethernet sama blynk.simple.ethernet, silahkan di copy.

char auth[] = “YourAuthToken”;

// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “YourNetworkName”;
char pass[] = “YourPassword”;

Blynk.begin(auth, ssid, pass);

Ini untuk bisa tersambung ke blynk nya, silahkan di copy.

STEP KE TIGA

Kalo DHT11 sudah tersambung ke NodeMCU silahkan di disambungkan ke laptop.

Terakhir tinggal di upload deh

Mungkin ini aja yang bisa kasih, mohon maap kalo ada kekurangan kata atau kurang jelas, arigatou sudah membaca artikel saya:)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response