Files
dc-sensor/firmware/main/include/sensor.h
T
2024-07-01 21:16:26 +02:00

24 lines
410 B
C

#ifndef SENSOR_H
#define SENSOR_H
#ifdef __cplusplus
extern "C" {
#endif
// Function to initialize the sensor
void initialize(void);
// Function to get the current humidity level
// Returns the humidity as a percentage (0-100)
float getHumidity(void);
// Function to get the current temperature
// Returns the temperature in degrees Celsius
float getTemperature(void);
#ifdef __cplusplus
}
#endif
#endif