- Format your YAML correctly - see How to help us help you - or How to ask a good question in particular #11.
- Saying “I get errors” isn’t useful. What do the errors say?
- Similarly “the wrong value” isn’t informative - what value did you get and what were you expecting?
- Show all the relevant bits of YAML in particular where the sensor is defined.