Error with new yml file

I am attempting to change my yml file from the original given in the green_getting_started demo to incorporate additional sensors. The file loaded properly in python when the new sensors were added, however, then I changed the file to account for humidity readings and I get a prompt saying there is an error with the sintax.

Here is what I have:

  • name: sensor2
    driver: devices.xbee.xbee_devices.xbee_sensor:XBeeSensor
    settings:
    xbee_device_manager: “xbee_device_manager”
    extended_address: “00:13:a2:00:40:4a:ba:c7!”
    sleep: True
    humidity_present: True
    sample_rate_ms: 5000

I chose to type ‘humidity_present: True’ based off the ‘xbee_sensor.py’ file’s information.

Is this written properly? Sorry if this is a simple question…

Make sure you never use tabs in a YML - it supports spaces only since indentation defines blocks and one cannot out-guess how many spaces equals a tab.

So if the “humidity_present” line has 1 or more tabs before it, then you’ll get a syntax error.

works perfectly.

thanks for the tip!