main: initialise rpio before using the range finder