Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: custom
- lambda: |-
- static custom_sensor* ph_sensor = nullptr;
- if (!ph_sensor) {
- ph_sensor = new custom_sensor();
- App.register_component(ph_sensor);
- }
- return ph_sensor;
- id: uart_ph_sensor
- sensors:
- - name: "pH Sensor"
- - platform: custom
- lambda: |-
- static custom_sensor* tds_sensor = nullptr;
- if (!tds_sensor) {
- tds_sensor = new custom_sensor();
- App.register_component(tds_sensor);
- }
- return tds_sensor;
- id: uart_tds_sensor
- sensors:
- - name: "TDS Sensor"
- - platform: custom
- lambda: |-
- static custom_sensor* ec_sensor = nullptr;
- if (!ec_sensor) {
- ec_sensor = new custom_sensor();
- App.register_component(ec_sensor);
- }
- return ec_sensor;
- id: uart_ec_sensor
- sensors:
- - name: "EC Sensor"
- - platform: custom
- lambda: |-
- static custom_sensor* water_temp_sensor = nullptr;
- if (!water_temp_sensor) {
- water_temp_sensor = new custom_sensor();
- App.register_component(water_temp_sensor);
- }
- return water_temp_sensor;
- id: uart_water_temp_sensor
- sensors:
- - name: "Water Temperature Sensor"
- - platform: custom
- lambda: |-
- static custom_sensor* distance_sensor = nullptr;
- if (!distance_sensor) {
- distance_sensor = new custom_sensor();
- App.register_component(distance_sensor);
- }
- return distance_sensor;
- id: uart_distance_sensor
- sensors:
- - name: "Distance Sensor"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement