Well the code can handle whatever you want . . . you just need to understand how to use it - just takes tweaking it for awhile.
For example, you will see a line in the code that says this:
What this means is that whatever sensor is attached to port 5 (the place you plug in the sensor wires), that sensor value is stored in sensor_value. So in code, it doesn't really matter if its sharp IR or a photoresistor, that line will stay the same. What does matter though is that different sensors work better used in different ways, so you can optimize by tweaking the code.
If you build it, it will start to make sense.