Added detection code structure

Added the ir detection code structure. Still need values from the
bot.