A Ramsgreave man will be sentenced after admitting to attempting to engage in sexual communications with a child.