fixed major bug with sensor array initialization