Added code to cut out any readings that may be errornous