Sensor not showing on dashboard

I just wrote this for someone who could not see their switch. Same applies for you just add your sensor instead of the switch: