Coupling to the curvature for a scalar field from the equivalence principle