void read_din1 (void)
{

   DIGITAL_IN1 = 1;
   delay_10ms();

   return DIGITAL_IN1;

}