sensor:
  - platform: pulse_width
    name: Pulse Width
    pin: 4