Device for sensing inclination changes