temperature sensor data

#include <stdio.h>

// Function to convert temperature from Celsius to Fahrenheit
float celsiusToFahrenheit(float celsius) {
    return (celsius * 9.0/5.0) + 32;
}

int main() {
    // Declare variables to store temperature in Celsius and Fahrenheit
    float celsiusTemperature, fahrenheitTemperature;

    // Prompt user to enter temperature in Celsius
    printf("Enter temperature in Celsius: ");
    scanf("%f", &celsiusTemperature);

    // Convert temperature from Celsius to Fahrenheit
    fahrenheitTemperature = celsiusToFahrenheit(celsiusTemperature);

    // Display the converted temperature in Fahrenheit
    printf("Temperature in Fahrenheit: %.2f\n", fahrenheitTemperature);

    return 0;
}