now when ever am giving the same port number to both the applications am getting the error!
am feeding the output values of sensor using simulator for arduino software.
In the history of the universe, there has been more than one error. You are not getting "the error". You are getting an error, but you haven't told us that there error is.