weird stuff happening with sensor program o_0

I don't have anything connected to AREF, either. What do you mean by putting a free wire at the analog pin?