Sensor state changes text color on View

How can I change text color on a View tab when a sensor has reach a critical point?

OK … thanks