sensor:
  - platform: duty_cycle
    pin: 4
    name: Duty Cycle Sensor