[DUPLICATE] Problem with SOIL MOISTURE sensor with module ESP8266 in blynk

I can not get Blynk to give me information about the soil moisture through the sensor. I need to receive soil moisture information on a scale of 0 - 100 in the blynk gauge. I think there’s something wrong with the code. Please, I really need to know how to make it work because I have been researching for many days but I do not find some help or solution.
Grateful

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

/*WIFI-CONECTION/

char auth[] = “****************************";
char ssid[] = "
”;
char pass[] = “*********************”;

/CONFIGURE/

void setup()
{
Serial.begin(115200);
Blynk.begin("", "", “*”);

}

void loop()
{
int moistureSensor = analogRead(A0);
moistureSensor = map(moistureSensor, 0, 1023, 0, 100);

Blynk.run();

}
Not works!

  1. Post formatted code.
  2. Study SimpleTimer in the PushData example
  3. Read all the docs
1 Like

Sorry but that did not help me at all. I just want to know how I can fix this error that is in the sketch “Adafruit_Sensor.h: No such file or directory” being that I have the library but anyway I can not solve this compilation problem. If you can help me with that, I’m grateful. Thanks for listening.

Don’t start two threads about the same issue.

You have been given advice in the other thread. You need to go away and study it and work with the examples provided by Blynk as you clearly don’t have a grasp on the basics.

1 Like

Look at your first post. We can’t see ANY libraries as you haven’t bothered to learn how to post formatted code to the site.

1 Like

With all due respect, this community serves to help, right? Could you give me a little tip on how to solve this problem, it’s not very difficult I know but it’s just a help. It’s not about studying, but about helping! I just asked for a tip to solve the problem of compiling the sketch and not a moral lesson … Can you help me?

With all due respect, this community serves to help, right? Could you give me a little tip on how to solve this problem, it’s not very difficult I know but it’s just a help. It’s not about studying, but about helping! I just asked for a tip to solve the problem of compiling the sketch and not a moral lesson … Can you help me?

I can’t help you in this duplicate thread no.

Please don’t post again in this thread.

Ok I’ll delete this topic

You could help yourself by looking at the examples… namely PushData.

Honestly, forget your moisture sensors, load that example on your hardware, get it working.

You will see very quickly how you can merge those 2 lines I gave you in to that sketch and show your moisture data instead of the device uptime.

This community consists of other Blynk users, just like yourself… who started out without Blynk knowledge and slowly gained it by, YES, studying! We do not serve here, we help voluntarily.

2 Likes

“so swallow your words”…I don’t understand anything…but I guess this is not the best way for asking for help…

He has been here 3 whole hours and already believes he knows all about Jamin’s educational level and eating habits :stuck_out_tongue: I know I am not going to ‘serve’ him :wink:

3 Likes