Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

PROBLEMS WITH CODE

$
0
0
Hi, people. So, I was wondering about some problems with my code and how I fix them. I am simply setting up a DHT11 with an LCD and arduino UNO. Thanks, and here is my code:

#include <DHT.h>
#include <DHT_U.h>

#include <LiquidCrystal.h>


int SENSOR = 2;

int VO = 3;
int RS = 4;
int E = 5;
int D4 = 6;
int D5 = 7;
int D6 = 8;
int D7 = 9;

int temp;
int humidity;

DHT dht (SENSOR, DHT11);
LiquidCrystal lcd (RS, E, D4, D5, D6, D7);

void setup() {
dht.begin();

lcd.begin(16, 2);...

PROBLEMS WITH CODE

Viewing all articles
Browse latest Browse all 1271

Trending Articles