As sirduff mentioned if both your flights are on the same ticket and they're both at Heathrow, you'll be in transit and won't need to clear customs. After getting off the plane and walking a ways there is a fork in the path where if you are going through passport control/customs you go one way and if transiting to another international flight you go the other way.