ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sensors.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * sensors.h
  3. *
  4. * ESP8266 / ESP32 Environmental Sensor
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
  9. * you can do whatever you want with this stuff. If we meet some day, and you
  10. * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
  11. * ----------------------------------------------------------------------------
  12. */
  13. #ifndef __SENSORS_H__
  14. #define __SENSORS_H__
  15. float bme1_temp(void);
  16. float bme2_temp(void);
  17. float bme1_humid(void);
  18. float bme2_humid(void);
  19. float bme1_pressure(void);
  20. float bme2_pressure(void);
  21. float sht_temp(void);
  22. float sht_humid(void);
  23. extern bool found_bme1, found_bme2, found_sht;
  24. #ifdef ENABLE_CCS811
  25. float ccs1_eco2(void);
  26. float ccs1_tvoc(void);
  27. float ccs2_eco2(void);
  28. float ccs2_tvoc(void);
  29. extern bool found_ccs1, found_ccs2;
  30. extern bool ccs1_data_valid, ccs2_data_valid;
  31. extern int ccs1_error_code, ccs2_error_code;
  32. #endif // ENABLE_CCS811
  33. void handleCalibrate();
  34. void initSensors();
  35. void runSensors();
  36. #endif // __SENSORS_H__