The present invention relates to a method and system to regulate pressure in an object, and is especially suitable for regulating intracranial pressure in people suffering from hydrocephalus. The system includes the measurement of physical parameters other than the pressure to be regulated, especially the present position of the object, such as the inclination.