Thanks a lot buddy. My values are now showing up on Ubidots.
I found the error. the code that you provided works with 115200 baud rate if i change the baud rate to 9600 is doesn't works. So i install 115200 baud rate firmware to my ESP8266-01 and then try the code and it works. Again thank you so much you saved me..