The court may permit any child to remain in the custody of the person found guilty of contributing to its abuse or neglect, under such suspended sentence, upon such conditions for the treatment and care of such child as may seem to the court to be for its best welfare, or as may be calculated to secure obedience to the law or to remove the cause of such abuse or neglect, and while such conditions are accepted and complied with by any such person, such sentence may remain suspended subject to be enforced upon the violation of any of the conditions imposed by the court.
SDCL 26-9-12