Notifications
Clear all

Please help me resolve this platformio error

2 Posts
2 Users
0 Likes
1,434 Views
(@linuxtech)
Maker Revolution Inspired
Joined: 3 years ago
Posts: 17
Topic starter  

Hello Bill Sir,

 

I really like your youtube tutorials and I am fascinated by each of them. I had recently seen your tutorial on "Building a complete developers linux workstation" and also saw your tutorial on platformio IDE plugin for arduino. I am using platformio on Ubuntu 20.04 LTS (Specific version : Ubuntu 20.04.2.0 LTS). I was using it for making a project with my DHT22 temperature and humidity sensor.

 

I added the adafruit unified sensor library and the adafruit DHT sensor library in my DHT sensor project just how you had instructed to add a library in your video. But when I included it in my code by:

 

#include"DHT.h"

 

then I got some swigly red lines. When I hovered by mouse pointer upon them, I got an error which said to me

“#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit”

 

I researched about this error on many different forums including the platformio forum where somebody had got exactly the same error. This is the link of that part of the forum

 

https://community.platformio.org/t/include-errors-detected-please-update-your-includepath-squiggles-are-disabled-for-this-translation-unit/10882

 

When I went through all of that, I just ended up in a more puzzling situation where I did not have a clue of what shall I do. 

 

Please help me resolve this akward platformio error sir.

 

Thank You


   
Quote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@linuxtech

As a start I would try this:  #include <DHT.h>

Notice the space after the word "include" and before the "<"

And I might add that if you want a relatively accurate temp and humid reading I would suggest a better module from Adafruit, the AHT20.  It has much better accuracy than the DHT22.

SteveG


   
ReplyQuote