Use Arduino abs() macro for distance