A device to inspect a pipeline includes an optical system for contactless detection of an interior contour of the pipeline by optical triangulation, with the optical system being attachable to a carrier structure, which is insertable in a pipeline. The optical system includes at least n≧2 triangulation sensors or light section sensors disposed rotatably about a common axis of rotation and by the n triangulation sensors or n light section sensors being disposed about the common axis of rotation spaced the greatest possible distance apart angle-wise.