Not able to use esphome and its fingerprint sensor

I already discribed the problem in full here:

But I will paste the rought problem here again:
after flashing a “good” ie., working config for a fingerprint sensor i get the [E][component:082]: Component fingerprint_grow is marked FAILED error after connecting to the device:


The yaml config was this:

esphome:
  name: xxx
  friendly_name: xxx

esp8266:
  board: d1_mini

# Enable logging
logger:
  level: VERY_VERBOSE

ota:
  - platform: esphome
    password: "xxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "xxx"
    password: "xxx"

captive_portal:
    

uart:
  rx_pin: D1
  tx_pin: D0
  baud_rate: 57600

fingerprint_grow:
  sensing_pin: D2

  on_finger_scan_invalid:
    - homeassistant.event:
        event: esphome.xxx
  on_finger_scan_matched:
    - homeassistant.event:
        event: esphome.xxx
        data:
          finger_id: !lambda 'return finger_id;'
          confidence: !lambda 'return confidence;'
  on_finger_scan_unmatched:
    - homeassistant.event:
        event: esphome.xxx
  on_finger_scan_misplaced:
    - homeassistant.event:
        event: esphome.xxx
  on_enrollment_scan:
    - homeassistant.event:
        event: esphome.xxx
        data:
          finger_id: !lambda 'return finger_id;'
          scan_num: !lambda 'return scan_num;'
  on_enrollment_done:
    - homeassistant.event:
        event: esphome.xxx
        data:
          finger_id: !lambda 'return finger_id;'
  on_enrollment_failed:
    - homeassistant.event:
        event: esphome.xxx
        data:
          finger_id: !lambda 'return finger_id;'

api:
  encryption:
    key: "xxx"

  actions:
  - action: enroll
    variables:
      finger_id: int
      num_scans: int
    then:
      - fingerprint_grow.enroll:
          finger_id: !lambda 'return finger_id;'
          num_scans: !lambda 'return num_scans;'
  - action: cancel_enroll
    then:
      - fingerprint_grow.cancel_enroll:
  - action: delete
    variables:
      finger_id: int
    then:
      - fingerprint_grow.delete:
          finger_id: !lambda 'return finger_id;'
  - action: delete_all
    then:
      - fingerprint_grow.delete_all:

How do you know it is “good”.

Others got this error when using the wrong pins:

Have you checked you used the right documentation for the board, and that your D1 is an actual D1? This is one of the most faked boards around, boards that have little or nothing in common with the real version.

I do not get any errors and is is 100% compliant with the example from the eso home website

I bought a AZdelivery module from amazon. so its not an “original” D1 but it works exacly like one. The ESP8266 Module is real. I have also done multiple other projects with exactly the same board and they all worked flawlessly. I also used the same pinout as for all other projects.

Try swapping rx and tx.

Also, is it something to do with D0 being high at boot?

Why not use the RX and TX pins, which are designed for UART?