Another way to say "The effect of going to bed is sleeping" is "Going to bed makes you sleep."