I've built an Arduino temperature sensor with an LCD screen and I now want to send the data to a MicroSD card for storage and I want to send the data to the Arduino IOT cloud so I can view the data in real time. Can anyone help me with how to do this? I have been following this project
I have bought DIGILENT Pmod MicroSD and DFROBOT TEL0126. I have included images of my current build below and my current code.
#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal_I2C.h>
const int SENSOR_PIN = 13; // Arduino pin connected to DS18B20 sensor's DQ pin
OneWire oneWire(SENSOR_PIN); // setup a oneWire instance
DallasTemperature tempSensor(&oneWire); // pass oneWire to DallasTemperature library
LiquidCrystal_I2C lcd(0x3F, 16, 2); // I2C address 0x3F (from DIYables LCD), 16 column and 2 rows
float tempCelsius; // temperature in Celsius
float tempFahrenheit; // temperature in Fahrenheit
void setup()
{
Serial.begin(9600); // initialize serial
tempSensor.begin(); // initialize the sensor
lcd.init(); // initialize the lcd
lcd.backlight(); // open the backlight
}
void loop()
{
tempSensor.requestTemperatures(); // send the command to get temperatures
tempCelsius = tempSensor.getTempCByIndex(0); // read temperature in Celsius
Serial.print(tempCelsius); // print the temperature in Celsius
Serial.println("°C");
lcd.clear();
lcd.setCursor(0, 0); // start to print at the first row
lcd.print("CONCRETE TEMP:"); // print concrete temp wording
lcd.setCursor(0, 1); // start to print at the second row
lcd.print(tempCelsius); // print the temperature in Celsius
lcd.print((char)223); // print ° character
lcd.print("C");
delay(1000); // read temperature once every 15 minutes which is 900000 ms
}`Use code tags to format code for the forum`


