New and trying to figure out code

What was wrong with the code I gave you? Just change the logInterval to 5000.