Yes I think both of them would work with OpenSprinkler / OpenSprinkler Pi. Most rain sensors are simply rain-activated switch — some are normally open (i.e. switch is disconnected when there is no rain) but most common ones are normally closed (i.e. switch is on when there is no rain). OpenSprinkler software allows you to choose between the two types of sensors.