added 5 microsecond delay between i2c commands to avoid input/output error