Optimal monitoring to implement a clean technology when emissions are random