sets up distance sensor