HTU21D.rar hello there i am interfacing HTU21D with nrf51822. i am reading temperature and humidty from HTU21D. humidty register is E5. and temperature register is E3. now my problem is that when i am trying to read only humidity it gives me correct value. when i am trying to read only temperature it gives me wrong value.when i am trying to read both temperature and humidity i am getting both wrong value.
I have uploaded code here. can you tell me what is problem here?? is there any problem in writing i2c driver??