Alan Aldous, 42, of Normans Court, Micklefield Road, was sentenced at Isleworth Crown Court last month.
He pleaded guilty to possessing a prohibited weapon, namely a stun gun, at the airport's Terminal Three on May 4.
The prosecution dropped a more serious charge of possessing a disguised weapon, which carries a minimum five-year prison sentence.
“He had a stun gun that had the appearance of a torch that had 'Stun Gun' written on the side,” said prosecutor Mr. Julius Capon.
Aldous was sentenced to six months imprisonment, suspended for two years, and was also ordered to perform 100 hours community service work.