IR Sensor Fried Mega 2560

So what code were you running?
What pin did you input the arduino to?
You might have set that pin to be an output and fried things.