Fork of the espurna firmware for `mhsw` switches
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.

632 lines
21 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
6 years ago
  1. // =============================================================================
  2. // SENSORS - General data
  3. // =============================================================================
  4. #define SENSOR_DEBUG 0 // Debug sensors
  5. #define SENSOR_READ_INTERVAL 6 // Read data from sensors every 6 seconds
  6. #define SENSOR_READ_MIN_INTERVAL 6 // Minimum read interval
  7. #define SENSOR_READ_MAX_INTERVAL 3600 // Maximum read interval
  8. #define SENSOR_INIT_INTERVAL 10000 // Try to re-init non-ready sensors every 10s
  9. #define SENSOR_REPORT_EVERY 10 // Report every this many readings
  10. #define SENSOR_REPORT_MIN_EVERY 1 // Minimum every value
  11. #define SENSOR_REPORT_MAX_EVERY 12 // Maximum
  12. #define SENSOR_USE_INDEX 0 // Use the index in topic (i.e. temperature/0)
  13. // even if just one sensor (0 for backwards compatibility)
  14. #ifndef SENSOR_POWER_CHECK_STATUS
  15. #define SENSOR_POWER_CHECK_STATUS 1 // If set to 1 the reported power/current/energy will be 0 if the relay[0] is OFF
  16. #endif
  17. #ifndef SENSOR_TEMPERATURE_CORRECTION
  18. #define SENSOR_TEMPERATURE_CORRECTION 0.0 // Offset correction
  19. #endif
  20. #ifndef TEMPERATURE_MIN_CHANGE
  21. #define TEMPERATURE_MIN_CHANGE 0.0 // Minimum temperature change to report
  22. #endif
  23. #ifndef SENSOR_HUMIDITY_CORRECTION
  24. #define SENSOR_HUMIDITY_CORRECTION 0.0 // Offset correction
  25. #endif
  26. #ifndef HUMIDITY_MIN_CHANGE
  27. #define HUMIDITY_MIN_CHANGE 0 // Minimum humidity change to report
  28. #endif
  29. #define SENSOR_PUBLISH_ADDRESSES 0 // Publish sensor addresses
  30. #define SENSOR_ADDRESS_TOPIC "address" // Topic to publish sensor addresses
  31. #ifndef SENSOR_TEMPERATURE_UNITS
  32. #define SENSOR_TEMPERATURE_UNITS TMP_CELSIUS // Temperature units (TMP_CELSIUS | TMP_FAHRENHEIT)
  33. #endif
  34. #ifndef SENSOR_ENERGY_UNITS
  35. #define SENSOR_ENERGY_UNITS ENERGY_JOULES // Energy units (ENERGY_JOULES | ENERGY_KWH)
  36. #endif
  37. #ifndef SENSOR_POWER_UNITS
  38. #define SENSOR_POWER_UNITS POWER_WATTS // Power units (POWER_WATTS | POWER_KILOWATTS)
  39. #endif
  40. // =============================================================================
  41. // Specific data for each sensor
  42. // =============================================================================
  43. //------------------------------------------------------------------------------
  44. // Analog sensor
  45. // Enable support by passing ANALOG_SUPPORT=1 build flag
  46. //--------------------------------------------------------------------------------
  47. #ifndef ANALOG_SUPPORT
  48. #define ANALOG_SUPPORT 0
  49. #endif
  50. //------------------------------------------------------------------------------
  51. // BH1750
  52. // Enable support by passing BH1750_SUPPORT=1 build flag
  53. // http://www.elechouse.com/elechouse/images/product/Digital%20light%20Sensor/bh1750fvi-e.pdf
  54. //------------------------------------------------------------------------------
  55. #ifndef BH1750_SUPPORT
  56. #define BH1750_SUPPORT 0
  57. #endif
  58. #ifndef BH1750_ADDRESS
  59. #define BH1750_ADDRESS 0x00 // 0x00 means auto
  60. #endif
  61. #define BH1750_MODE BH1750_CONTINUOUS_HIGH_RES_MODE
  62. //------------------------------------------------------------------------------
  63. // BME280/BMP280
  64. // Enable support by passing BMX280_SUPPORT=1 build flag
  65. //------------------------------------------------------------------------------
  66. #ifndef BMX280_SUPPORT
  67. #define BMX280_SUPPORT 0
  68. #endif
  69. #ifndef BMX280_ADDRESS
  70. #define BMX280_ADDRESS 0x00 // 0x00 means auto
  71. #endif
  72. #define BMX280_MODE 1 // 0 for sleep mode, 1 or 2 for forced mode, 3 for normal mode
  73. #define BMX280_STANDBY 0 // 0 for 0.5ms, 1 for 62.5ms, 2 for 125ms
  74. // 3 for 250ms, 4 for 500ms, 5 for 1000ms
  75. // 6 for 10ms, 7 for 20ms
  76. #define BMX280_FILTER 0 // 0 for OFF, 1 for 2 values, 2 for 4 values, 3 for 8 values and 4 for 16 values
  77. #define BMX280_TEMPERATURE 1 // Oversampling for temperature (set to 0 to disable magnitude)
  78. #define BMX280_HUMIDITY 1 // Oversampling for humidity (set to 0 to disable magnitude, only for BME280)
  79. #define BMX280_PRESSURE 1 // Oversampling for pressure (set to 0 to disable magnitude)
  80. //------------------------------------------------------------------------------
  81. // Dallas OneWire temperature sensors
  82. // Enable support by passing DALLAS_SUPPORT=1 build flag
  83. //------------------------------------------------------------------------------
  84. #ifndef DALLAS_SUPPORT
  85. #define DALLAS_SUPPORT 0
  86. #endif
  87. #ifndef DALLAS_PIN
  88. #define DALLAS_PIN 14
  89. #endif
  90. #define DALLAS_RESOLUTION 9 // Not used atm
  91. #define DALLAS_READ_INTERVAL 2000 // Force sensor read & cache every 2 seconds
  92. //------------------------------------------------------------------------------
  93. // DHTXX temperature/humidity sensor
  94. // Enable support by passing DHT_SUPPORT=1 build flag
  95. //------------------------------------------------------------------------------
  96. #ifndef DHT_SUPPORT
  97. #define DHT_SUPPORT 0
  98. #endif
  99. #ifndef DHT_PIN
  100. #define DHT_PIN 14
  101. #endif
  102. #ifndef DHT_TYPE
  103. #define DHT_TYPE DHT_CHIP_DHT22
  104. #endif
  105. //------------------------------------------------------------------------------
  106. // CSE7766 based power sensor
  107. // Enable support by passing CSE7766_SUPPORT=1 build flag
  108. //------------------------------------------------------------------------------
  109. #ifndef CSE7766_SUPPORT
  110. #define CSE7766_SUPPORT 0
  111. #endif
  112. #ifndef CSE7766_PIN
  113. #define CSE7766_PIN 1 // TX pin from the CSE7766
  114. #endif
  115. #ifndef CSE7766_PIN_INVERSE
  116. #define CSE7766_PIN_INVERSE 0 // Signal is inverted
  117. #endif
  118. #define CSE7766_SYNC_INTERVAL 300 // Safe time between transmissions (ms)
  119. #define CSE7766_BAUDRATE 4800 // UART baudrate
  120. #define CSE7766_V1R 1.0 // 1mR current resistor
  121. #define CSE7766_V2R 1.0 // 1M voltage resistor
  122. //------------------------------------------------------------------------------
  123. // Digital sensor
  124. // Enable support by passing DIGITAL_SUPPORT=1 build flag
  125. //------------------------------------------------------------------------------
  126. #ifndef DIGITAL_SUPPORT
  127. #define DIGITAL_SUPPORT 0
  128. #endif
  129. #ifndef DIGITAL_PIN
  130. #define DIGITAL_PIN 2
  131. #endif
  132. #ifndef DIGITAL_PIN_MODE
  133. #define DIGITAL_PIN_MODE INPUT_PULLUP
  134. #endif
  135. #ifndef DIGITAL_DEFAULT_STATE
  136. #define DIGITAL_DEFAULT_STATE 1
  137. #endif
  138. //------------------------------------------------------------------------------
  139. // ECH1560 based power sensor
  140. // Enable support by passing ECH1560_SUPPORT=1 build flag
  141. //------------------------------------------------------------------------------
  142. #ifndef ECH1560_SUPPORT
  143. #define ECH1560_SUPPORT 0
  144. #endif
  145. #ifndef ECH1560_CLK_PIN
  146. #define ECH1560_CLK_PIN 4 // CLK pin for the ECH1560
  147. #endif
  148. #ifndef ECH1560_MISO_PIN
  149. #define ECH1560_MISO_PIN 5 // MISO pin for the ECH1560
  150. #endif
  151. #ifndef ECH1560_INVERTED
  152. #define ECH1560_INVERTED 0 // Signal is inverted
  153. #endif
  154. //------------------------------------------------------------------------------
  155. // Energy Monitor general settings
  156. //------------------------------------------------------------------------------
  157. #define EMON_MAX_SAMPLES 1000 // Max number of samples to get
  158. #define EMON_MAX_TIME 250 // Max time in ms to sample
  159. #define EMON_FILTER_SPEED 512 // Mobile average filter speed
  160. #define EMON_MAINS_VOLTAGE 230 // Mains voltage
  161. #define EMON_REFERENCE_VOLTAGE 3.3 // Reference voltage of the ADC
  162. #define EMON_CURRENT_RATIO 30 // Current ratio in the clamp (30V/1A)
  163. #define EMON_REPORT_CURRENT 0 // Report current
  164. #define EMON_REPORT_POWER 1 // Report power
  165. #define EMON_REPORT_ENERGY 1 // Report energy
  166. //------------------------------------------------------------------------------
  167. // Energy Monitor based on ADC121
  168. // Enable support by passing EMON_ADC121_SUPPORT=1 build flag
  169. //------------------------------------------------------------------------------
  170. #ifndef EMON_ADC121_SUPPORT
  171. #define EMON_ADC121_SUPPORT 0 // Do not build support by default
  172. #endif
  173. #define EMON_ADC121_I2C_ADDRESS 0x00 // 0x00 means auto
  174. //------------------------------------------------------------------------------
  175. // Energy Monitor based on ADS1X15
  176. // Enable support by passing EMON_ADS1X15_SUPPORT=1 build flag
  177. //------------------------------------------------------------------------------
  178. #ifndef EMON_ADS1X15_SUPPORT
  179. #define EMON_ADS1X15_SUPPORT 0 // Do not build support by default
  180. #endif
  181. #define EMON_ADS1X15_I2C_ADDRESS 0x00 // 0x00 means auto
  182. #define EMON_ADS1X15_TYPE ADS1X15_CHIP_ADS1115
  183. #define EMON_ADS1X15_GAIN ADS1X15_REG_CONFIG_PGA_4_096V
  184. #define EMON_ADS1X15_MASK 0x0F // A0=1 A1=2 A2=4 A3=8
  185. //------------------------------------------------------------------------------
  186. // Energy Monitor based on interval analog GPIO
  187. // Enable support by passing EMON_ANALOG_SUPPORT=1 build flag
  188. //------------------------------------------------------------------------------
  189. #ifndef EMON_ANALOG_SUPPORT
  190. #define EMON_ANALOG_SUPPORT 0 // Do not build support by default
  191. #endif
  192. //------------------------------------------------------------------------------
  193. // Counter sensor
  194. // Enable support by passing EVENTS_SUPPORT=1 build flag
  195. //------------------------------------------------------------------------------
  196. #ifndef EVENTS_SUPPORT
  197. #define EVENTS_SUPPORT 0 // Do not build with counter support by default
  198. #endif
  199. #ifndef EVENTS_PIN
  200. #define EVENTS_PIN 2 // GPIO to monitor
  201. #endif
  202. #ifndef EVENTS_PIN_MODE
  203. #define EVENTS_PIN_MODE INPUT // INPUT, INPUT_PULLUP
  204. #endif
  205. #ifndef EVENTS_INTERRUPT_MODE
  206. #define EVENTS_INTERRUPT_MODE RISING // RISING, FALLING, BOTH
  207. #endif
  208. #define EVENTS_DEBOUNCE 50 // Do not register events within less than 10 millis
  209. //------------------------------------------------------------------------------
  210. // HC-SR04
  211. // Enable support by passing HCSR04_SUPPORT=1 build flag
  212. //------------------------------------------------------------------------------
  213. #ifndef HCSR04_SUPPORT
  214. #define HCSR04_SUPPORT 0
  215. #endif
  216. #ifndef HCSR04_TRIGGER
  217. #define HCSR04_TRIGGER 12 // GPIO for the trigger pin (output)
  218. #endif
  219. #ifndef HCSR04_ECHO
  220. #define HCSR04_ECHO 14 // GPIO for the echo pin (input)
  221. #endif
  222. //------------------------------------------------------------------------------
  223. // HLW8012 Energy monitor IC
  224. // Enable support by passing HLW8012_SUPPORT=1 build flag
  225. //------------------------------------------------------------------------------
  226. #ifndef HLW8012_SUPPORT
  227. #define HLW8012_SUPPORT 0
  228. #endif
  229. #ifndef HLW8012_SEL_PIN
  230. #define HLW8012_SEL_PIN 5
  231. #endif
  232. #ifndef HLW8012_CF1_PIN
  233. #define HLW8012_CF1_PIN 13
  234. #endif
  235. #ifndef HLW8012_CF_PIN
  236. #define HLW8012_CF_PIN 14
  237. #endif
  238. #ifndef HLW8012_SEL_CURRENT
  239. #define HLW8012_SEL_CURRENT HIGH // SEL pin to HIGH to measure current
  240. #endif
  241. #ifndef HLW8012_CURRENT_R
  242. #define HLW8012_CURRENT_R 0.001 // Current resistor
  243. #endif
  244. #ifndef HLW8012_VOLTAGE_R_UP
  245. #define HLW8012_VOLTAGE_R_UP ( 5 * 470000 ) // Upstream voltage resistor
  246. #endif
  247. #ifndef HLW8012_VOLTAGE_R_DOWN
  248. #define HLW8012_VOLTAGE_R_DOWN ( 1000 ) // Downstream voltage resistor
  249. #endif
  250. #define HLW8012_USE_INTERRUPTS 1 // Use interrupts to trap HLW8012 signals
  251. //------------------------------------------------------------------------------
  252. // MHZ19 CO2 sensor
  253. // Enable support by passing MHZ19_SUPPORT=1 build flag
  254. //------------------------------------------------------------------------------
  255. #ifndef MHZ19_SUPPORT
  256. #define MHZ19_SUPPORT 0
  257. #endif
  258. #define MHZ19_RX_PIN 13
  259. #define MHZ19_TX_PIN 15
  260. //------------------------------------------------------------------------------
  261. // Particle Monitor based on Plantower PMSX003
  262. // Enable support by passing PMSX003_SUPPORT=1 build flag
  263. //------------------------------------------------------------------------------
  264. #ifndef PMSX003_SUPPORT
  265. #define PMSX003_SUPPORT 0
  266. #endif
  267. #define PMS_RX_PIN 13
  268. #define PMS_TX_PIN 15
  269. //------------------------------------------------------------------------------
  270. // PZEM004T based power monitor
  271. // Enable support by passing PZEM004T_SUPPORT=1 build flag
  272. //------------------------------------------------------------------------------
  273. #ifndef PZEM004T_SUPPORT
  274. #define PZEM004T_SUPPORT 0
  275. #endif
  276. #ifndef PZEM004T_USE_SOFT
  277. #define PZEM004T_USE_SOFT 1 // Use software serial
  278. #endif
  279. #ifndef PZEM004T_RX_PIN
  280. #define PZEM004T_RX_PIN 13 // Software serial RX GPIO (if PZEM004T_USE_SOFT == 1)
  281. #endif
  282. #ifndef PZEM004T_TX_PIN
  283. #define PZEM004T_TX_PIN 15 // Software serial TX GPIO (if PZEM004T_USE_SOFT == 1)
  284. #endif
  285. #ifndef PZEM004T_HW_PORT
  286. #define PZEM004T_HW_PORT Serial1 // Hardware serial port (if PZEM004T_USE_SOFT == 0)
  287. #endif
  288. //------------------------------------------------------------------------------
  289. // SHT3X I2C (Wemos) temperature & humidity sensor
  290. // Enable support by passing SHT3X_SUPPORT=1 build flag
  291. //------------------------------------------------------------------------------
  292. #ifndef SHT3X_I2C_SUPPORT
  293. #define SHT3X_I2C_SUPPORT 0
  294. #endif
  295. #ifndef SHT3X_I2C_ADDRESS
  296. #define SHT3X_I2C_ADDRESS 0x00 // 0x00 means auto
  297. #endif
  298. //------------------------------------------------------------------------------
  299. // SI7021 temperature & humidity sensor
  300. // Enable support by passing SI7021_SUPPORT=1 build flag
  301. //------------------------------------------------------------------------------
  302. #ifndef SI7021_SUPPORT
  303. #define SI7021_SUPPORT 0
  304. #endif
  305. #ifndef SI7021_ADDRESS
  306. #define SI7021_ADDRESS 0x00 // 0x00 means auto
  307. #endif
  308. //------------------------------------------------------------------------------
  309. // TMP3X analog temperature sensor
  310. // Enable support by passing TMP3X_SUPPORT=1 build flag
  311. //------------------------------------------------------------------------------
  312. #ifndef TMP3X_SUPPORT
  313. #define TMP3X_SUPPORT 0
  314. #endif
  315. #ifndef TMP3X_TYPE
  316. #define TMP3X_TYPE TMP3X_TMP35
  317. #endif
  318. //------------------------------------------------------------------------------
  319. // V9261F based power sensor
  320. // Enable support by passing SI7021_SUPPORT=1 build flag
  321. //------------------------------------------------------------------------------
  322. #ifndef V9261F_SUPPORT
  323. #define V9261F_SUPPORT 0
  324. #endif
  325. #ifndef V9261F_PIN
  326. #define V9261F_PIN 2 // TX pin from the V9261F
  327. #endif
  328. #ifndef V9261F_PIN_INVERSE
  329. #define V9261F_PIN_INVERSE 1 // Signal is inverted
  330. #endif
  331. #define V9261F_SYNC_INTERVAL 600 // Sync signal length (ms)
  332. #define V9261F_BAUDRATE 4800 // UART baudrate
  333. // Default ratios
  334. #define V9261F_CURRENT_FACTOR 79371434.0
  335. #define V9261F_VOLTAGE_FACTOR 4160651.0
  336. #define V9261F_POWER_FACTOR 153699.0
  337. #define V9261F_RPOWER_FACTOR V9261F_CURRENT_FACTOR
  338. //------------------------------------------------------------------------------
  339. // AM2320 Humidity & Temperature sensor over I2C
  340. // Enable support by passing AM2320_SUPPORT=1 build flag
  341. //------------------------------------------------------------------------------
  342. #ifndef AM2320_SUPPORT
  343. #define AM2320_SUPPORT 0
  344. #endif
  345. #ifndef AM2320_ADDRESS
  346. #define AM2320_ADDRESS 0x00 // 0x00 means auto
  347. #endif
  348. //------------------------------------------------------------------------------
  349. // GUVAS12SD UV Sensor (analog)
  350. // Enable support by passing GUVAS12SD_SUPPORT=1 build flag
  351. //------------------------------------------------------------------------------
  352. #ifndef GUVAS12SD_SUPPORT
  353. #define GUVAS12SD_SUPPORT 0
  354. #endif
  355. #ifndef GUVAS12SD_PIN
  356. #define GUVAS12SD_PIN 14
  357. #endif
  358. // =============================================================================
  359. // Sensor helpers configuration - can't move to dependencies.h
  360. // =============================================================================
  361. #ifndef SENSOR_SUPPORT
  362. #if ANALOG_SUPPORT || BH1750_SUPPORT || BMX280_SUPPORT || DALLAS_SUPPORT \
  363. || DHT_SUPPORT || DIGITAL_SUPPORT || ECH1560_SUPPORT \
  364. || EMON_ADC121_SUPPORT || EMON_ADS1X15_SUPPORT \
  365. || EMON_ANALOG_SUPPORT || EVENTS_SUPPORT || HLW8012_SUPPORT \
  366. || MHZ19_SUPPORT || PMSX003_SUPPORT || SHT3X_I2C_SUPPORT \
  367. || SI7021_SUPPORT || V9261F_SUPPORT || AM2320_SUPPORT \
  368. || GUVAS12SD_SUPPORT || CSE7766_SUPPORT || TMP3X_SUPPORT \
  369. || HCSR04_SUPPORT
  370. #define SENSOR_SUPPORT 1
  371. #else
  372. #define SENSOR_SUPPORT 0
  373. #endif
  374. #endif
  375. // -----------------------------------------------------------------------------
  376. // ADC
  377. // -----------------------------------------------------------------------------
  378. // Default ADC mode is to monitor internal power supply
  379. #ifndef ADC_MODE_VALUE
  380. #define ADC_MODE_VALUE ADC_VCC
  381. #endif
  382. // -----------------------------------------------------------------------------
  383. // I2C
  384. // -----------------------------------------------------------------------------
  385. #ifndef I2C_SUPPORT
  386. #define I2C_SUPPORT 0 // I2C enabled (1.98Kb)
  387. #endif
  388. #define I2C_USE_BRZO 0 // Use brzo_i2c library or standard Wire
  389. #ifndef I2C_SDA_PIN
  390. #define I2C_SDA_PIN SDA // SDA GPIO (Sonoff => 4)
  391. #endif
  392. #ifndef I2C_SCL_PIN
  393. #define I2C_SCL_PIN SCL // SCL GPIO (Sonoff => 14)
  394. #endif
  395. #define I2C_CLOCK_STRETCH_TIME 200 // BRZO clock stretch time
  396. #define I2C_SCL_FREQUENCY 1000 // BRZO SCL frequency
  397. #define I2C_CLEAR_BUS 0 // Clear I2C bus on boot
  398. #define I2C_PERFORM_SCAN 1 // Perform a bus scan on boot
  399. //--------------------------------------------------------------------------------
  400. // Class loading
  401. //--------------------------------------------------------------------------------
  402. #if SENSOR_SUPPORT
  403. #include "../sensors/BaseSensor.h"
  404. #if AM2320_SUPPORT
  405. #include "../sensors/AM2320Sensor.h"
  406. #endif
  407. #if ANALOG_SUPPORT
  408. #include "../sensors/AnalogSensor.h"
  409. #endif
  410. #if BH1750_SUPPORT
  411. #include "../sensors/BH1750Sensor.h"
  412. #endif
  413. #if BMX280_SUPPORT
  414. #include "../sensors/BMX280Sensor.h"
  415. #endif
  416. #if CSE7766_SUPPORT
  417. #include <SoftwareSerial.h>
  418. #include "../sensors/CSE7766Sensor.h"
  419. #endif
  420. #if DALLAS_SUPPORT
  421. #include <OneWire.h>
  422. #include "../sensors/DallasSensor.h"
  423. #endif
  424. #if DHT_SUPPORT
  425. #include "../sensors/DHTSensor.h"
  426. #endif
  427. #if DIGITAL_SUPPORT
  428. #include "../sensors/DigitalSensor.h"
  429. #endif
  430. #if ECH1560_SUPPORT
  431. #include "../sensors/ECH1560Sensor.h"
  432. #endif
  433. #if EMON_ADC121_SUPPORT
  434. #include "../sensors/EmonADC121Sensor.h"
  435. #endif
  436. #if EMON_ADS1X15_SUPPORT
  437. #include "../sensors/EmonADS1X15Sensor.h"
  438. #endif
  439. #if EMON_ANALOG_SUPPORT
  440. #include "../sensors/EmonAnalogSensor.h"
  441. #endif
  442. #if EVENTS_SUPPORT
  443. #include "../sensors/EventSensor.h"
  444. #endif
  445. #if GUVAS12SD_SUPPORT
  446. #include "../sensors/GUVAS12SDSensor.h"
  447. #endif
  448. #if HCSR04_SUPPORT
  449. #include "../sensors/HCSR04Sensor.h"
  450. #endif
  451. #if HLW8012_SUPPORT
  452. #include <HLW8012.h>
  453. #include "../sensors/HLW8012Sensor.h"
  454. #endif
  455. #if MHZ19_SUPPORT
  456. #include <SoftwareSerial.h>
  457. #include "../sensors/MHZ19Sensor.h"
  458. #endif
  459. #if PMSX003_SUPPORT
  460. #include <SoftwareSerial.h>
  461. #include <PMS.h>
  462. #include "../sensors/PMSX003Sensor.h"
  463. #endif
  464. #if PZEM004T_SUPPORT
  465. #include <SoftwareSerial.h>
  466. #include "../sensors/PZEM004TSensor.h"
  467. #endif
  468. #if SI7021_SUPPORT
  469. #include "../sensors/SI7021Sensor.h"
  470. #endif
  471. #if SHT3X_I2C_SUPPORT
  472. #include "../sensors/SHT3XI2CSensor.h"
  473. #endif
  474. #if TMP3X_SUPPORT
  475. #include "../sensors/TMP3XSensor.h"
  476. #endif
  477. #if V9261F_SUPPORT
  478. #include <SoftwareSerial.h>
  479. #include "../sensors/V9261FSensor.h"
  480. #endif
  481. #endif // SENSOR_SUPPORT