I've managed to get a Sharp infrared (analogue) sensor and it works according to the sensor example. However I want to just get this data on it's own. I'm lost. I've tried analogRead() etc but cannot seem to get it. I need some help with the code to (a) get the data from A2, (b) display the data, (c) the code to compare the data to a set variable. i.e if A2 reading > than 200 then Action etc etc. This is for use in an object collision python program. If any one could even direct me to where this is clearer than currently shown in the camera robot tutorial which displays ALL sensors in a loop.
I appreciate this is pretty basic stuff.