moisture-sensor.scad 690 Bytes
module pcb() {
  cube([86,22.5,1.5]);
  translate([86,11.25,0])cylinder(d=22.5,h=1.5, $fn=4);
}
module connector() {
  /* translate([-2.5,11.25-5,1.5]) cube([7,10,6]); */
  translate([-2.5-5.5,11.25-5-0.5,1.5]) cube([12.5,11,6]);
}

module thsolder() {
  translate([3,11.25-4.5,-1.7]) cube([3,9,1.7]);
}

module parts() {
  /* translate([8,0.5,1.5]) cube([15,21.5,2.5]); */
  translate([-8,0,1.5]) cube([27+4,22.5,2.5]);
}

module moisture_sensor() {
  difference() {
    union() {
      pcb();
      connector();
      thsolder();
      parts();
    }
    union() {
      translate([20,0,-1]) cylinder(r=1.5,h=6,$fn=6);
      translate([20,22.5,-1]) cylinder(r=1.5,h=6,$fn=6);
    }
  }
}