added distance sensor