if (millis()-sendingTimer>=1000) {
sendingTimer=millis();
//Each function below from URM_RS485 returns the state whether RS485 Bus
is busy or not.
//If the Bus is busy, wait until the bus is released.
while(!urm.requestDistance(DefaultAddress)) {
commandProcess();
}
//
// while(!urm.requestTemperature(DefaultAddress)) {
// commandProcess();
// }
//
// while(!urm.requestMaxDistance(DefaultAddress)) {
// commandProcess();
// }
//
// while(!urm.setAddress(DefaultAddress)) {
// commandProcess();
// }
//
// while(!urm.setBaudrate(DefaultAddress, DefaultBaudrate)) {
// commandProcess();
// }
//
// while(!urm.setMaxDistance(DefaultAddress, DefaultMaxDistance)) {
// commandProcess();
// }
//
//Time Out Duration can be Customized
// while(!urm.requestDistance(DefaultAddress, CustomizedTimeOutDuration))
{