changed SPI clock speed to 4 MHz for faster sensing