Implemented input validation for sensor serial numbers