what sensor for DIY turbidimeter?

for (int i=1; i=3; i++) {

says: set i = 1; set i=3; increment i.

you dont have a condition for the loop to end. should you have i<=3?