Initialize the reading to prevent null pointer exceptions
Guard against getting null sensor and draw the slider ticks