writing out entire sensorarray at once instead of one at a time.