Maker Pro
Maker Pro

How to build an Arduino Weather Station Error

brin838

Feb 26, 2023
2
Joined
Feb 26, 2023
Messages
2
I am receiving an "Does not name a type" error on the Above mentioned sketch on the following line
#define dht_dpin A1 //no ; here. Set equal to channel sensor is on
dht DHT;

Any suggestions?
 

Bluejets

Oct 5, 2014
6,583
Joined
Oct 5, 2014
Messages
6,583
Any suggestions?
Yes....show the code (in code brackets....three dots in reply menu, more options (<>)....) that you are referring to.......
Most here are good, but not so good as to suggest changes or problems with code they cannot see.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,337
Joined
Nov 17, 2011
Messages
13,337
I may have found the code. The error is not with you but with the originator of the article. The includes are misisng there:
1677589407191.png

The necessary hint comes shortly before the code:
1677589454148.png
 
Top