added delay to avoid SPI communication problems