Linking low-to high-mass YSOs with Herschel