sensor:
  - platform: pulse_counter
    name: Pulse Counter
    pin: 4
    use_pcnt: false
    count_mode:
      rising_edge: INCREMENT
      falling_edge: DECREMENT
    internal_filter: 13us
    update_interval: 15s
