Setup pulse meter or pulse counter

Did not work

Get no pulse:

[16:45:50][D][sensor:090]: ‘Power’: Sending state 0.00000 kW with 2 decimals of accuracy
[16:45:50][D][pulse_counter:150]: ‘Power’: Total : 0 pulses
[16:45:50][D][sensor:090]: ‘Energy’: Sending state 0.000 kWh with 3 decimals of accuracy

This is my code:

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: arduino

sensor:
  - platform: pulse_counter
    pin: GPIO5 #D5
    name: 'Power'
    id: power
    unit_of_measurement: 'kW'
    state_class: measurement
    device_class: power
    filters:
      - multiply: 0.6 # (60 minutes per hour / 100 pulses per kWh)
    total:
      name: 'Energy'
      id: energy
      unit_of_measurement: 'kWh'
      state_class: total_increasing
      device_class: energy
      accuracy_decimals: 3
      filters:
        - multiply: 0.01

Pinout:

and

What could I try?