added sensor 3-axis detection