added sleep between sensor measurement