HC SR04 with Arduino Mega 2560 and ESp8266
Posted: Fri Jan 22, 2016 2:18 am
I am connecting HC SR 04 ultrasonic sensor with Arduino mega 2560 and ESp8266.
I want to take readings from the sensor and push that readings to the cloud.
while i am able to do it with arduino programming (i.e .ino file) ,
i want to do it with LUA programming . but it showing 0 0 0 0 all zeros as a result .
i am sharing .lua code .. what part i am doing wrong ??
I want to take readings from the sensor and push that readings to the cloud.
while i am able to do it with arduino programming (i.e .ino file) ,
i want to do it with LUA programming . but it showing 0 0 0 0 all zeros as a result .
i am sharing .lua code .. what part i am doing wrong ??