Hey everyone, I am currently working on a soil moisture sensor, currently, the results are displayed on the serial monitor screen, however, I am looking to add the feature of results being sent by email, can anyone explain how can I do that, attached is my current code;
//soil moisture sensor
const int soilpin=A0;
int ledsoil=13;
void setup()
{
Serial.begin(9600);
pinMode(ledsoil,OUTPUT);
Serial.println("Reading From the Sensor ...");
delay(2000);
}
void loop()
{
int moisture=analogRead(soilpin);
int percentagemoisture = map(moisture, 0,1023, 0, 100);
Serial.print("percentagemoisture: ");
Serial.print(percentagemoisture);
Serial.println("%");
if(moisture>700)
{
digitalWrite(ledsoil,HIGH);
delay(1000);
}
else
{
digitalWrite(ledsoil,LOW);
delay(1000);
}
}