The defendant stood in the dock, with his face scrunched up in concentration.
Looking directly at him, Judge Gilbert said he was concerned by his history of sexual offences and viewing of child sex abuse online.
He described this as deviant behaviour.
"Every little child at end of those [online] pictures has been… abused. There's immense harm in this kind of offending."
Judge Gilbert did note the man has had good jobs and long-lasting, age appropriate relationships in the past.
Custom officers were examining imports from China last year when they found the life-like sex doll that resembled a young child.
Timaru police and Customs investigators executed a search warrant at Heppleston's house on the morning of May 10 2018, before his first court appearance that afternoon.
Heppleston will also be listed on the child sex offender register.