Defence lawyer Ian Hard said Mr Gernhoefer had recently become a father which was a "life changing experience to him".
"He has very much been focused on his family life. He really doesn't want to be doing this anymore, he is highly motivated to stay out of prison."
Mr Hard said Mr Gernhoefer was not so much motivated by greed, but rather stupidity.
Judge Tom Broadmore said both of Mr Gernhoefer's offences involved breaches of trust and dishonesty.
In relation to the tablets Judge Broadmore said "you rewarded them for their hospitality by stealing tablets".
He said it was not long ago that Mr Gernhoefer served a term of imprisonment for offences of that kind. "I have decided not to do that [send you back to prison]."
He said Mr Gernhoefer had shown remorse and motivation to avoid further offending and that it was possible Mr Gernhoefer's relationship and child would encourage him to lead a life which keeps him out of jail.
Mr Gernhoefer was sentenced to three months' community detention and ordered to pay reparations of $800 and $250.