Trying to add Folder Sensor

Hi guys, i am trying to add a folder sensor in my configuration.yaml, i added the following:

  - platform: folder
    folder: /config/downloads/"

However, i get the following error when i check my config. "Invalid config for [sensor.folder]: not a directory for dictionary value @ data[‘folder’]. Got ‘/config/downloads’. (See ?, line ?). "

Any suggestions how to fix this?

Thanks in advance!

Solved, i didn’t have the right permissions on the folder i tried to use.

Now i run into the following error when checking the log:

Logger: homeassistant.components.folder.sensor
Source: components/folder/
Integration: folder (documentation, issues)
First occurred: 20:50:47 (1 occurrences)
Last logged: 20:50:47

folder ./home/homeassistant/.homeassistant/downloads/ is not valid or allowed

Any suggestions?