reading from limit switches