Financial problems led a working man to go to Morrisons with a foil-lined box in an attempt to steal items.
Daniel Frankish, of Beck Gardens, Grantham, admitted stealing £129 worth of items from the supermarket and going equipped for theft.
The court heard Frankish, 30, walked into the store with a carrier bag containing a cardboard box lined with tin foil.
Rory Macmillan, defending, said Frankish, a factory worker, stole because of money problems.
He said: “He had taken out a loan but because the direct debit had come out he found he had no money left for that week and made a bad decision to go to Morrisons with the intention of stealing.
“He would have used the money to buy essentials.”
Frankish was ordered to carry out 100 hours of unpaid work. He must also pay £85 costs and a £60 surcharge.