Gauge not displaying data from esp32

i just started coding not too long ago, now i am thinkering with the esp32 mudule but i being having issues with the gauges from blynk for some reason the data is display in the serial monitor but not being display in the gauges from blink. i already check the virtual pin make sure its set to the correct one and make sure i am not spaming the blynk cloud with unnecessary data but for some reason it still not working, could some one help me ?
here is my code that i am using its very simple one i just have setup to send a fix 45c to the gauge to test

[Unformatted code removed by moderator}

@lucas1 Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Also, snippets of code are no use to us in situations like this, we need to see your full sketch.

Pete.


void sendToBlynk() {
float valueToDisplay = 45.0;

// Send numeric value to Gauge widget on V1
Blynk.virtualWrite(V1, valueToDisplay);

// Send formatted label text to Label widget on V2
String labelText = "Temperature: " + String(valueToDisplay, 1) + “°C”;
Blynk.virtualWrite(V2, labelText);

// Print to Serial for debug
Serial.println("Sent to gauge (V1) and label (V2): " + labelText);
}

void setup() {
Serial.begin(115200);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
timer.setInterval(10000L, sendToBlynk); // Every 10 seconds
}

void loop() {
Blynk.run();
timer.run();
}

This sketch won’t compile, as it’s missing the libraries etc, so it’s impossible to test.

Pete.

sorry pete here is the full code

#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID ""
#define BLYNK_TEMPLATE_NAME ""
#define BLYNK_AUTH_TOKEN ""

#include <WiFiManager.h>
#include <BlynkSimpleEsp32_SSL.h>
#include <OneWire.h>
#include <DallasTemperature.h>

// === PINS ===
#define ONE_WIRE_BUS 4
#define RELAY1_PIN 26
#define RELAY2_PIN 27
#define BUTTON1_PIN 14
#define BUTTON2_PIN 15
#define LED1_PIN 13
#define LED2_PIN 12

// === TEMP SENSOR ===
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
float currentTemp = 0;
float setpoint = 26.0;
float hysteresis = 0.5;
bool relay1State = false;

// === MANUAL STATES ===
bool manualRelay1 = false;
bool manualRelay2 = false;

// === BLYNK WIDGETS ===
BlynkTimer timer;
unsigned long lastTempSendTime = 0;
const unsigned long tempSendInterval = 10000; // Send every 10 seconds max

// === Read Temp and Send to Blynk ===
void sendSensor() {
  sensors.requestTemperatures();
  currentTemp = sensors.getTempCByIndex(0);
  Serial.print("Current Temp: ");
  Serial.println(currentTemp);
  unsigned long now = millis();
  if (Blynk.connected() && now - lastTempSendTime >= tempSendInterval) {
    Blynk.virtualWrite(V10, currentTemp);
    Serial.println("Temp sent to Blynk.");
    lastTempSendTime = now;
  } else if (!Blynk.connected()) {
    Serial.println("Blynk not connected — can't send V0");
  }
}

// === SETPOINT FROM SLIDER ===
BLYNK_WRITE(V1) {
  setpoint = param.asFloat();
}

// === RELAY 1 BUTTON (MANUAL) ===
BLYNK_WRITE(V2) {
  manualRelay1 = param.asInt();
}

// === RELAY 2 BUTTON (MANUAL) ===
BLYNK_WRITE(V3) {
  manualRelay2 = param.asInt();
}

void setup() {
  Serial.begin(115200);

  pinMode(RELAY1_PIN, OUTPUT); digitalWrite(RELAY1_PIN, LOW);
  pinMode(RELAY2_PIN, OUTPUT); digitalWrite(RELAY2_PIN, LOW);
  pinMode(BUTTON1_PIN, INPUT_PULLUP);
  pinMode(BUTTON2_PIN, INPUT_PULLUP);
  pinMode(LED1_PIN, OUTPUT); digitalWrite(LED1_PIN, LOW);
  pinMode(LED2_PIN, OUTPUT); digitalWrite(LED2_PIN, LOW);

  sensors.begin();

  // Start WiFiManager portal
  WiFiManager wm;
  if (!wm.autoConnect("ESP32_Pool", "password")) {
    Serial.println("Failed to connect. Rebooting...");
    delay(3000);
    ESP.restart();
  }

  // Connected to Wi-Fi
  Blynk.config(BLYNK_AUTH_TOKEN);
  Blynk.connect();

  if (Blynk.connected()) {
    Serial.println("Blynk is connected!");
  } else {
    Serial.println("Blynk is NOT connected!");
  }

  timer.setInterval(10000L, sendSensor); // Read temp every 10s to match Blynk push rate```

Once again, that’s an incomplete sketch which won’t compile.

Is this a game, or do you really want help?

Pete.