I am trying to form a data packet containing distance from ultrasonic sensor and then various data like lat, long, speed, etc from GPS. I was able to interface gps and ultrasonic sensor individually with Arduino UNO and correct values of data were obtained.
When I interface both sensor and gps together, the data obtained does not contain correct values of distance. Only lat and long values are obtained.
At times the distance values obtained is zero.
How can I resolve this error?
I have also tried adding delays between the working of sensor and gps but again incorrect values of distance were obtained.
Thanks in advance.