need your kind help regarding GPS,GSM,DHT11 based project (temp/hunidit+location

hi dear friends,i am new here and want your kind help
thanks
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10,11);
#include <Sim800l.h>
#include <TinyGPS++.h>
TinyGPSPlus gps;
#include<DHT.h>
#define DHTPIN 2 // Digital pin connected to the DHT sensor
#define DHTTYPE DHT11 // DHT 11

DHT dht(DHTPIN, DHTTYPE);
void setup()
{
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
mySerial.println(“AT+CNMI=2,2,0,0,0”);
delay(100);
dht.begin();
}

void loop()
{
delay(1000);
float h = dht.readHumidity();
// Read temperature as Celsius (the default)
float t = dht.readTemperature();
// Read temperature as Fahrenheit (isFahrenheit = true)
float f = dht.readTemperature(true);

mySerial.println(“AT+CMGF=1”); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println(“AT+CMGS=”+XXxxxxxxxxxx"\r"); // Replace x with mobile number X with countryCode
delay(1000);
mySerial.println(“I am SMS from GSM Module\n”);// The SMS text you want to send
mySerial.println(“The current temperature is:”+String(t)+"*C"+“the humidity is:”+String(h)+"%");
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(60000);
}

1 Like

Please understand the forume cannot know what you want help with unless you tell us.

You have posted some code, do you expect the forum to guess at random what you want help with ?

dear all i want to make gps tracker with temperature by gsm sms allert