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.

641 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. #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. #if TMP3X_SUPPORT
  319. #undef ADC_VCC_ENABLED
  320. #define ADC_VCC_ENABLED 0
  321. #endif
  322. //------------------------------------------------------------------------------
  323. // V9261F based power sensor
  324. // Enable support by passing SI7021_SUPPORT=1 build flag
  325. //------------------------------------------------------------------------------
  326. #ifndef V9261F_SUPPORT
  327. #define V9261F_SUPPORT 0
  328. #endif
  329. #ifndef V9261F_PIN
  330. #define V9261F_PIN 2 // TX pin from the V9261F
  331. #endif
  332. #ifndef V9261F_PIN_INVERSE
  333. #define V9261F_PIN_INVERSE 1 // Signal is inverted
  334. #endif
  335. #define V9261F_SYNC_INTERVAL 600 // Sync signal length (ms)
  336. #define V9261F_BAUDRATE 4800 // UART baudrate
  337. // Default ratios
  338. #define V9261F_CURRENT_FACTOR 79371434.0
  339. #define V9261F_VOLTAGE_FACTOR 4160651.0
  340. #define V9261F_POWER_FACTOR 153699.0
  341. #define V9261F_RPOWER_FACTOR V9261F_CURRENT_FACTOR
  342. //------------------------------------------------------------------------------
  343. // AM2320 Humidity & Temperature sensor over I2C
  344. // Enable support by passing AM2320_SUPPORT=1 build flag
  345. //------------------------------------------------------------------------------
  346. #ifndef AM2320_SUPPORT
  347. #define AM2320_SUPPORT 0
  348. #endif
  349. #ifndef AM2320_ADDRESS
  350. #define AM2320_ADDRESS 0x00 // 0x00 means auto
  351. #endif
  352. //------------------------------------------------------------------------------
  353. // GUVAS12SD UV Sensor (analog)
  354. // Enable support by passing GUVAS12SD_SUPPORT=1 build flag
  355. //------------------------------------------------------------------------------
  356. #ifndef GUVAS12SD_SUPPORT
  357. #define GUVAS12SD_SUPPORT 0
  358. #endif
  359. #ifndef GUVAS12SD_PIN
  360. #define GUVAS12SD_PIN 14
  361. #endif
  362. // =============================================================================
  363. // Sensor helpers configuration - can't move to dependencies.h
  364. // =============================================================================
  365. #ifndef SENSOR_SUPPORT
  366. #if ANALOG_SUPPORT || BH1750_SUPPORT || BMX280_SUPPORT || DALLAS_SUPPORT \
  367. || DHT_SUPPORT || DIGITAL_SUPPORT || ECH1560_SUPPORT \
  368. || EMON_ADC121_SUPPORT || EMON_ADS1X15_SUPPORT \
  369. || EMON_ANALOG_SUPPORT || EVENTS_SUPPORT || HLW8012_SUPPORT \
  370. || MHZ19_SUPPORT || PMSX003_SUPPORT || SHT3X_I2C_SUPPORT \
  371. || SI7021_SUPPORT || V9261F_SUPPORT || AM2320_SUPPORT \
  372. || GUVAS12SD_SUPPORT || CSE7766_SUPPORT || TMP3X_SUPPORT \
  373. || HCSR04_SUPPORT
  374. #define SENSOR_SUPPORT 1
  375. #else
  376. #define SENSOR_SUPPORT 0
  377. #endif
  378. #endif
  379. // -----------------------------------------------------------------------------
  380. // I2C
  381. // -----------------------------------------------------------------------------
  382. #ifndef I2C_SUPPORT
  383. #define I2C_SUPPORT 0 // I2C enabled (1.98Kb)
  384. #endif
  385. #define I2C_USE_BRZO 0 // Use brzo_i2c library or standard Wire
  386. #ifndef I2C_SDA_PIN
  387. #define I2C_SDA_PIN SDA // SDA GPIO (Sonoff => 4)
  388. #endif
  389. #ifndef I2C_SCL_PIN
  390. #define I2C_SCL_PIN SCL // SCL GPIO (Sonoff => 14)
  391. #endif
  392. #define I2C_CLOCK_STRETCH_TIME 200 // BRZO clock stretch time
  393. #define I2C_SCL_FREQUENCY 1000 // BRZO SCL frequency
  394. #define I2C_CLEAR_BUS 0 // Clear I2C bus on boot
  395. #define I2C_PERFORM_SCAN 1 // Perform a bus scan on boot
  396. //--------------------------------------------------------------------------------
  397. // Internal power monitor
  398. // Enable support by passing ADC_VCC_ENABLED=1 build flag
  399. // Do not enable this if using the analog GPIO for any other thing
  400. //--------------------------------------------------------------------------------
  401. #ifndef ADC_VCC_ENABLED
  402. #define ADC_VCC_ENABLED 1
  403. #endif
  404. //--------------------------------------------------------------------------------
  405. // Class loading
  406. //--------------------------------------------------------------------------------
  407. #if SENSOR_SUPPORT
  408. #include "../sensors/BaseSensor.h"
  409. #if AM2320_SUPPORT
  410. #include "../sensors/AM2320Sensor.h"
  411. #endif
  412. #if ANALOG_SUPPORT
  413. #include "../sensors/AnalogSensor.h"
  414. #endif
  415. #if BH1750_SUPPORT
  416. #include "../sensors/BH1750Sensor.h"
  417. #endif
  418. #if BMX280_SUPPORT
  419. #include "../sensors/BMX280Sensor.h"
  420. #endif
  421. #if CSE7766_SUPPORT
  422. #include <SoftwareSerial.h>
  423. #include "../sensors/CSE7766Sensor.h"
  424. #endif
  425. #if DALLAS_SUPPORT
  426. #include <OneWire.h>
  427. #include "../sensors/DallasSensor.h"
  428. #endif
  429. #if DHT_SUPPORT
  430. #include "../sensors/DHTSensor.h"
  431. #endif
  432. #if DIGITAL_SUPPORT
  433. #include "../sensors/DigitalSensor.h"
  434. #endif
  435. #if ECH1560_SUPPORT
  436. #include "../sensors/ECH1560Sensor.h"
  437. #endif
  438. #if EMON_ADC121_SUPPORT
  439. #include "../sensors/EmonADC121Sensor.h"
  440. #endif
  441. #if EMON_ADS1X15_SUPPORT
  442. #include "../sensors/EmonADS1X15Sensor.h"
  443. #endif
  444. #if EMON_ANALOG_SUPPORT
  445. #include "../sensors/EmonAnalogSensor.h"
  446. #endif
  447. #if EVENTS_SUPPORT
  448. #include "../sensors/EventSensor.h"
  449. #endif
  450. #if GUVAS12SD_SUPPORT
  451. #include "../sensors/GUVAS12SDSensor.h"
  452. #endif
  453. #if HCSR04_SUPPORT
  454. #include "../sensors/HCSR04Sensor.h"
  455. #endif
  456. #if HLW8012_SUPPORT
  457. #include <HLW8012.h>
  458. #include "../sensors/HLW8012Sensor.h"
  459. #endif
  460. #if MHZ19_SUPPORT
  461. #include <SoftwareSerial.h>
  462. #include "../sensors/MHZ19Sensor.h"
  463. #endif
  464. #if PMSX003_SUPPORT
  465. #include <SoftwareSerial.h>
  466. #include <PMS.h>
  467. #include "../sensors/PMSX003Sensor.h"
  468. #endif
  469. #if PZEM004T_SUPPORT
  470. #include <SoftwareSerial.h>
  471. #include "../sensors/PZEM004TSensor.h"
  472. #endif
  473. #if SI7021_SUPPORT
  474. #include "../sensors/SI7021Sensor.h"
  475. #endif
  476. #if SHT3X_I2C_SUPPORT
  477. #include "../sensors/SHT3XI2CSensor.h"
  478. #endif
  479. #if TMP3X_SUPPORT
  480. #include "../sensors/TMP3XSensor.h"
  481. #endif
  482. #if V9261F_SUPPORT
  483. #include <SoftwareSerial.h>
  484. #include "../sensors/V9261FSensor.h"
  485. #endif
  486. #endif // SENSOR_SUPPORT