IFTTT Trigger in scripts

Hi All, I am trying to push values from sensors to google sheets, followed the IFTTT integration. I created a script and it generates entries in the excel sheet, however the values which are allowed in the script are only text fields.

I want to use sensor states instead. How I can do it ?

Please read the documentation at

At the bottom of the document, some examples are given e.g.:
value2: "{{ trigger.event.data.entity_id.split(’_’)[1] }} is "
value3: “{{ trigger.event.data.to_state.state }}”

Followed the document but it still doesn’t capture the value.
what can be wrong ?