Theory: How an IR sensor detects lines and surfaces. - Robodemy