adding another sensor

how would i go about adding another sensor to this code?

#define BLYNK_PRINT Serial

#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>
#include <DHT.h>

#define DHTPIN 2
#define DHTTYPE DHT22

BlynkTimer timer;

void sendSensor()
float h = dht.readHumidity();
float t = dht.readTemperature(true); // or dht.readTemperature(true) for Fahrenheit

if (isnan(h) || isnan(t)) {
Serial.println(“Failed to read from DHT sensor!”);
// You can send any value at any time.
// Please don’t send more that 10 values per second.
Blynk.virtualWrite(V5, h);
Blynk.virtualWrite(V6, t);

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = “Ljw476ueM961rrT2Xr9fzhXCoY4bC5yN”;

// Your WiFi credentials.
char ssid = “Home Wifi”;
char pass = “ZeldaDaphne1”;

void setup()
// Debug console

Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, “”, 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);


// Setup a function to be called every second
timer.setInterval(1000L, sendSensor);

void loop()


Current_sensor_project-1sensor_blynk.ino (1.26 KB)

What sort of sensor?

What makes you think this is a bootloader issue?

Please remember to use code tags when posting code, and make sure you erase keys and passwords before posting :wink: