Utilize old android devices sensors, for smart thing

This is how I use my old iOS hardware, should be easier with android.