begin function sadded, which controls workflow of sensor and adds while loop to fill addDataPointArray()
Removed dataPointArray Magik Number