lastest good; integration needs refining
test code updated
calibrate ir sensor with matlab histogram