Changed data buffer to account for sensor presence