On picture new ready for use solution from Olimex for IoT.
Souliss – Hello World for Expressif ESP8266-DEV with MOD-MPU6050.
This is the basic example (https://github.com/souliss/souliss/tree/friariello/examples/Olimex/e05_Olimex_ESP8266-EVB_MOD-MPU6050), create a software push-button on Android using SoulissApp (get it from Play Store).
Load this code on ESP8266 board using the porting of the Arduino core for this platform.
And code for libs from Olimex (https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/MOD-MPU6050_arduino.zip).
This example makes it possible to recognize when someone touched any object, which concerns the sensor. It’s like a robot or a dog who guards your property, keeping his arm around the clock or fall on any subject you specify.
It is also possible to create a network of all sensors. Combining all sensors networked via a wired and IR or wireless information exchange. That is, you can control your TV or sound system or lighting or LED tape by SoulissApp or voice command.