1st sensor template help

sensor:
platform: template
test_sensor_status:
friendly_name: “test_door”
value_template: >-
{% if is_state(“sensor.test_door_access_control”, “23”)%}
Closed
{% elif is_state(“sensor.test_door_access_control”, “22”)%}
Open
{% endif %}
this is what i have for a monoprice open close sensor but my yaml keeps saying
missed comma between flow collection entries at line 31, column 6:
{% if is_state("sensor.test_door_ …
^

what am i doing wrong

Hey razorface,

would you mind pasting your code by using the </> button in the editor? Looks like there’s no intendation.
Also try including a space between "23") and %} (for the if and elif)