How do you assign a sensor digital value to a signal with RAPID editor of RobotStudio?

And how do you initialize the sensor in Rapid editor to begin with?