Sonoff TH16 temperature sensor

Hello to the group!!!

I’am new to HA and automations. I recently bought a Sonoff TH16 and i installed it from HACS with Sonoff lan. I want to make an automation when temperature rises above 22°C to turn on a lamp. I tried from automation to set a temperature limit but nothing happened. Any thoughts? My sensor reads temperature correctly.

Thank you.