Duplicate mapping key in configuration.yaml

Hi,
This is my code:
mqtt:
binary_sensor:
name: ‘deur_gang’
state_topic: “tele/Bridge1/RESULT”
value_template: ‘{{value_json.RfReceived.Data}}’
payload_on: ‘9982A9’
off_delay: 5
device_class: window

name: 'pir_gang'
state_topic: "tele/Bridge1/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: 'F79A6E'
off_delay: 5
device_class: motion

I get the error message:
duplicated mapping key (38:5)

35 | off_delay: 5
36 | device_class: window
37 |
38 | name: ‘pir_gang’
----------^
39 | state_topic: “tele/Bridge1/RESULT”

What am I doing wrong?
Thanks you.

Your indentation maybe and/or the “-” missing to separate binary sensor definition ? it should be like this:

mqtt:
  binary_sensor:
    - name: 'deur_gang'
      state_topic: "tele/Bridge1/RESULT"
      value_template: '{{value_json.RfReceived.Data}}'
      payload_on: ‘9982A9’
      off_delay: 5
      device_class: window

    - name: 'pir_gang'
      state_topic: "tele/Bridge1/RESULT"
      value_template: '{{value_json.RfReceived.Data}}'
      payload_on: 'F79A6E'
      off_delay: 5
      device_class: motion

That’s it.
Thank you so much.
Yvonne