How to i force a GPIO sensor to update its state every time

Hi

I do have the following code:

binary_sensor:
  - platform: gpio
    pin: 
      number: D5
      inverted: True
    name: ${display_name} Rain
    device_class: moisture
    filters:
      - delayed_on_off: 5000ms

Working just fine, but how do i force the sensor that its updating every time. I do use Deep sleep and after a sleep the sensor is not updating, only whe state changes ,there is an update.

Thanks