Added IR sensor pin to parameters, changed default value.