Basic code for dealing with IR sensor robots