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.

655 lines
21 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 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. #ifndef MHZ19_RX_PIN
  259. #define MHZ19_RX_PIN 13
  260. #endif
  261. #ifndef MHZ19_TX_PIN
  262. #define MHZ19_TX_PIN 15
  263. #endif
  264. //------------------------------------------------------------------------------
  265. // Particle Monitor based on Plantower PMSX003
  266. // Enable support by passing PMSX003_SUPPORT=1 build flag
  267. //------------------------------------------------------------------------------
  268. #ifndef PMSX003_SUPPORT
  269. #define PMSX003_SUPPORT 0
  270. #endif
  271. #ifndef PMS_RX_PIN
  272. #define PMS_RX_PIN 13
  273. #endif
  274. #ifndef PMS_TX_PIN
  275. #define PMS_TX_PIN 15
  276. #endif
  277. //------------------------------------------------------------------------------
  278. // PZEM004T based power monitor
  279. // Enable support by passing PZEM004T_SUPPORT=1 build flag
  280. //------------------------------------------------------------------------------
  281. #ifndef PZEM004T_SUPPORT
  282. #define PZEM004T_SUPPORT 0
  283. #endif
  284. #ifndef PZEM004T_USE_SOFT
  285. #define PZEM004T_USE_SOFT 1 // Use software serial
  286. #endif
  287. #ifndef PZEM004T_RX_PIN
  288. #define PZEM004T_RX_PIN 13 // Software serial RX GPIO (if PZEM004T_USE_SOFT == 1)
  289. #endif
  290. #ifndef PZEM004T_TX_PIN
  291. #define PZEM004T_TX_PIN 15 // Software serial TX GPIO (if PZEM004T_USE_SOFT == 1)
  292. #endif
  293. #ifndef PZEM004T_HW_PORT
  294. #define PZEM004T_HW_PORT Serial1 // Hardware serial port (if PZEM004T_USE_SOFT == 0)
  295. #endif
  296. //------------------------------------------------------------------------------
  297. // SHT3X I2C (Wemos) temperature & humidity sensor
  298. // Enable support by passing SHT3X_SUPPORT=1 build flag
  299. //------------------------------------------------------------------------------
  300. #ifndef SHT3X_I2C_SUPPORT
  301. #define SHT3X_I2C_SUPPORT 0
  302. #endif
  303. #ifndef SHT3X_I2C_ADDRESS
  304. #define SHT3X_I2C_ADDRESS 0x00 // 0x00 means auto
  305. #endif
  306. //------------------------------------------------------------------------------
  307. // SI7021 temperature & humidity sensor
  308. // Enable support by passing SI7021_SUPPORT=1 build flag
  309. //------------------------------------------------------------------------------
  310. #ifndef SI7021_SUPPORT
  311. #define SI7021_SUPPORT 0
  312. #endif
  313. #ifndef SI7021_ADDRESS
  314. #define SI7021_ADDRESS 0x00 // 0x00 means auto
  315. #endif
  316. //------------------------------------------------------------------------------
  317. // TMP3X analog temperature sensor
  318. // Enable support by passing TMP3X_SUPPORT=1 build flag
  319. //------------------------------------------------------------------------------
  320. #ifndef TMP3X_SUPPORT
  321. #define TMP3X_SUPPORT 0
  322. #endif
  323. #ifndef TMP3X_TYPE
  324. #define TMP3X_TYPE TMP3X_TMP35
  325. #endif
  326. //------------------------------------------------------------------------------
  327. // V9261F based power sensor
  328. // Enable support by passing SI7021_SUPPORT=1 build flag
  329. //------------------------------------------------------------------------------
  330. #ifndef V9261F_SUPPORT
  331. #define V9261F_SUPPORT 0
  332. #endif
  333. #ifndef V9261F_PIN
  334. #define V9261F_PIN 2 // TX pin from the V9261F
  335. #endif
  336. #ifndef V9261F_PIN_INVERSE
  337. #define V9261F_PIN_INVERSE 1 // Signal is inverted
  338. #endif
  339. #define V9261F_SYNC_INTERVAL 600 // Sync signal length (ms)
  340. #define V9261F_BAUDRATE 4800 // UART baudrate
  341. // Default ratios
  342. #define V9261F_CURRENT_FACTOR 79371434.0
  343. #define V9261F_VOLTAGE_FACTOR 4160651.0
  344. #define V9261F_POWER_FACTOR 153699.0
  345. #define V9261F_RPOWER_FACTOR V9261F_CURRENT_FACTOR
  346. //------------------------------------------------------------------------------
  347. // AM2320 Humidity & Temperature sensor over I2C
  348. // Enable support by passing AM2320_SUPPORT=1 build flag
  349. //------------------------------------------------------------------------------
  350. #ifndef AM2320_SUPPORT
  351. #define AM2320_SUPPORT 0
  352. #endif
  353. #ifndef AM2320_ADDRESS
  354. #define AM2320_ADDRESS 0x00 // 0x00 means auto
  355. #endif
  356. //------------------------------------------------------------------------------
  357. // GUVAS12SD UV Sensor (analog)
  358. // Enable support by passing GUVAS12SD_SUPPORT=1 build flag
  359. //------------------------------------------------------------------------------
  360. #ifndef GUVAS12SD_SUPPORT
  361. #define GUVAS12SD_SUPPORT 0
  362. #endif
  363. #ifndef GUVAS12SD_PIN
  364. #define GUVAS12SD_PIN 14
  365. #endif
  366. // =============================================================================
  367. // Sensor helpers configuration - can't move to dependencies.h
  368. // =============================================================================
  369. #ifndef SENSOR_SUPPORT
  370. #define SENSOR_SUPPORT ( \
  371. AM2320_SUPPORT || \
  372. ANALOG_SUPPORT || \
  373. BH1750_SUPPORT || \
  374. BMX280_SUPPORT || \
  375. CSE7766_SUPPORT || \
  376. DALLAS_SUPPORT || \
  377. DHT_SUPPORT || \
  378. DIGITAL_SUPPORT || \
  379. ECH1560_SUPPORT || \
  380. EMON_ADC121_SUPPORT || \
  381. EMON_ADS1X15_SUPPORT || \
  382. EMON_ANALOG_SUPPORT || \
  383. EVENTS_SUPPORT || \
  384. GUVAS12SD_SUPPORT || \
  385. HCSR04_SUPPORT || \
  386. HLW8012_SUPPORT || \
  387. MHZ19_SUPPORT || \
  388. PMSX003_SUPPORT || \
  389. PZEM004T_SUPPORT || \
  390. SHT3X_I2C_SUPPORT || \
  391. SI7021_SUPPORT || \
  392. TMP3X_SUPPORT || \
  393. V9261F_SUPPORT \
  394. )
  395. #endif
  396. // -----------------------------------------------------------------------------
  397. // ADC
  398. // -----------------------------------------------------------------------------
  399. // Default ADC mode is to monitor internal power supply
  400. #ifndef ADC_MODE_VALUE
  401. #define ADC_MODE_VALUE ADC_VCC
  402. #endif
  403. // -----------------------------------------------------------------------------
  404. // I2C
  405. // -----------------------------------------------------------------------------
  406. #ifndef I2C_SUPPORT
  407. #define I2C_SUPPORT 0 // I2C enabled (1.98Kb)
  408. #endif
  409. #define I2C_USE_BRZO 0 // Use brzo_i2c library or standard Wire
  410. #ifndef I2C_SDA_PIN
  411. #define I2C_SDA_PIN SDA // SDA GPIO (Sonoff => 4)
  412. #endif
  413. #ifndef I2C_SCL_PIN
  414. #define I2C_SCL_PIN SCL // SCL GPIO (Sonoff => 14)
  415. #endif
  416. #define I2C_CLOCK_STRETCH_TIME 200 // BRZO clock stretch time
  417. #define I2C_SCL_FREQUENCY 1000 // BRZO SCL frequency
  418. #define I2C_CLEAR_BUS 0 // Clear I2C bus on boot
  419. #define I2C_PERFORM_SCAN 1 // Perform a bus scan on boot
  420. //--------------------------------------------------------------------------------
  421. // Class loading
  422. //--------------------------------------------------------------------------------
  423. #if SENSOR_SUPPORT
  424. #include "../sensors/BaseSensor.h"
  425. #if AM2320_SUPPORT
  426. #include "../sensors/AM2320Sensor.h"
  427. #endif
  428. #if ANALOG_SUPPORT
  429. #include "../sensors/AnalogSensor.h"
  430. #endif
  431. #if BH1750_SUPPORT
  432. #include "../sensors/BH1750Sensor.h"
  433. #endif
  434. #if BMX280_SUPPORT
  435. #include "../sensors/BMX280Sensor.h"
  436. #endif
  437. #if CSE7766_SUPPORT
  438. #include <SoftwareSerial.h>
  439. #include "../sensors/CSE7766Sensor.h"
  440. #endif
  441. #if DALLAS_SUPPORT
  442. #include <OneWire.h>
  443. #include "../sensors/DallasSensor.h"
  444. #endif
  445. #if DHT_SUPPORT
  446. #include "../sensors/DHTSensor.h"
  447. #endif
  448. #if DIGITAL_SUPPORT
  449. #include "../sensors/DigitalSensor.h"
  450. #endif
  451. #if ECH1560_SUPPORT
  452. #include "../sensors/ECH1560Sensor.h"
  453. #endif
  454. #if EMON_ADC121_SUPPORT
  455. #include "../sensors/EmonADC121Sensor.h"
  456. #endif
  457. #if EMON_ADS1X15_SUPPORT
  458. #include "../sensors/EmonADS1X15Sensor.h"
  459. #endif
  460. #if EMON_ANALOG_SUPPORT
  461. #include "../sensors/EmonAnalogSensor.h"
  462. #endif
  463. #if EVENTS_SUPPORT
  464. #include "../sensors/EventSensor.h"
  465. #endif
  466. #if GUVAS12SD_SUPPORT
  467. #include "../sensors/GUVAS12SDSensor.h"
  468. #endif
  469. #if HCSR04_SUPPORT
  470. #include "../sensors/HCSR04Sensor.h"
  471. #endif
  472. #if HLW8012_SUPPORT
  473. #include <HLW8012.h>
  474. #include "../sensors/HLW8012Sensor.h"
  475. #endif
  476. #if MHZ19_SUPPORT
  477. #include <SoftwareSerial.h>
  478. #include "../sensors/MHZ19Sensor.h"
  479. #endif
  480. #if PMSX003_SUPPORT
  481. #include <SoftwareSerial.h>
  482. #include <PMS.h>
  483. #include "../sensors/PMSX003Sensor.h"
  484. #endif
  485. #if PZEM004T_SUPPORT
  486. #include <SoftwareSerial.h>
  487. #include "../sensors/PZEM004TSensor.h"
  488. #endif
  489. #if SI7021_SUPPORT
  490. #include "../sensors/SI7021Sensor.h"
  491. #endif
  492. #if SHT3X_I2C_SUPPORT
  493. #include "../sensors/SHT3XI2CSensor.h"
  494. #endif
  495. #if TMP3X_SUPPORT
  496. #include "../sensors/TMP3XSensor.h"
  497. #endif
  498. #if V9261F_SUPPORT
  499. #include <SoftwareSerial.h>
  500. #include "../sensors/V9261FSensor.h"
  501. #endif
  502. #endif // SENSOR_SUPPORT