A system for dialysis is disclosed. An example peritoneal dialysis system includes a peritoneal dialysis machine including a pumping mechanism, and a sensor configured to measure a property of peritoneal dialysis fluid. The peritoneal dialysis system also includes a disposable cassette operable with the peritoneal dialysis machine. The disposable cassette includes a fluid source inlet for accepting fluid from a fluid source and a fluid flow path in fluid communication with the fluid source inlet. The fluid flow path includes a pump chamber operable with the pumping mechanism to pump fluid through the fluid flow path. The disposable cassette also includes a concentrate inlet for fluidly communicating concentrate to the fluid flow path, and a sensor chamber located along the fluid flow path and operable with the sensor. The sensor is configured to provide feedback to the peritoneal dialysis machine for mixing the concentrate for forming peritoneal dialysis fluid.